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:
Vyacheslav Egorov 2020-09-23 11:37:14 +02:00 committed by GitHub
parent b70f069671
commit dd34af2de4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -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: