From dd34af2de42194c7604e61baff530c7fdd43f097 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 23 Sep 2020 11:37:14 +0200 Subject: [PATCH] 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. --- .travis.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8cb60a1..06ae316 100644 --- a/.travis.yml +++ b/.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: