diff --git a/.appveyor.yml b/.appveyor.yml index 71fa74955d9f..f6e6cf6b91c5 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,7 +21,7 @@ install: before_test: - set "PATH=C:\MinGW\msys\1.0\bin;%PATH%" - - set "LIGHTHOUSE_CHROMIUM_PATH=%CD%\chrome-win32\chrome.exe" + - set "CHROME_PATH=%CD%\chrome-win32\chrome.exe" - bash ./lighthouse-core/scripts/download-chrome.sh - yarn build-all diff --git a/lighthouse-core/scripts/download-chrome.sh b/lighthouse-core/scripts/download-chrome.sh index 5c073cd7d5ab..aeeae3e901e2 100755 --- a/lighthouse-core/scripts/download-chrome.sh +++ b/lighthouse-core/scripts/download-chrome.sh @@ -14,12 +14,12 @@ else url="https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots" fi -if [ x"$LIGHTHOUSE_CHROMIUM_PATH" == x ]; then - echo "Error: Environment variable LIGHTHOUSE_CHROMIUM_PATH not set" +if [ x"$CHROME_PATH" == x ]; then + echo "Error: Environment variable CHROME_PATH not set" exit 1 fi -if [ -e "$LIGHTHOUSE_CHROMIUM_PATH" ]; then +if [ -e "$CHROME_PATH" ]; then echo "cached chrome found" else wget "$url" --no-check-certificate -q -O chrome.zip && unzip -q chrome.zip