mirror of https://github.com/grpc/grpc-dart.git
Fix for Windows Travis builds (#359)
This works around the issue with googlechrome package. This package downloads an installer from official Google build source which provides only the latest version. Whenever a new build is published Chocolatey package needs to be updated to resolve hash mismatch between new installer and what is hardcoded into the package itself. Usually this happens automatically but currently the package is stuck in moderation breaking normal installation flow. We work around the issue by hardcoding the hash for the current installer version.
This commit is contained in:
parent
b70f069671
commit
dd34af2de4
12
.travis.yml
12
.travis.yml
|
|
@ -7,7 +7,17 @@ addons:
|
|||
|
||||
# The Chrome addon does not work on windows
|
||||
before_install:
|
||||
- if [ $TRAVIS_OS_NAME = windows ]; then choco install googlechrome ; fi
|
||||
- |-
|
||||
if [ $TRAVIS_OS_NAME = windows ]; then
|
||||
# Installer is pulled from the official Google build source (which
|
||||
# provides the latest version only) so its hash changes whenever a new
|
||||
# version of Chrome is released, after which Chocolatey package gets
|
||||
# updated (which normally resolves hash mismatch) but currently the
|
||||
# package is stuck in moderation causing installation to fail.
|
||||
# Hardcode checksum of the official installer for now.
|
||||
chksum=43F1E6481A9F537D1591469124AFB9F804C830C6D38AF2820971947469DC2F3A
|
||||
choco install --download-checksum=$chksum googlechrome
|
||||
fi
|
||||
|
||||
# Run against both the dev and stable channel.
|
||||
dart:
|
||||
|
|
|
|||
Loading…
Reference in New Issue