|
|
@ -15,13 +15,7 @@ jobs: |
|
|
|
xlarge |
|
|
|
xlarge |
|
|
|
working_directory: ~/remix-project |
|
|
|
working_directory: ~/remix-project |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- browser-tools/install-browser-tools: |
|
|
|
|
|
|
|
install-firefox: false |
|
|
|
|
|
|
|
install-chrome: true |
|
|
|
|
|
|
|
install-chromedriver: false |
|
|
|
|
|
|
|
install-geckodriver: false |
|
|
|
|
|
|
|
- checkout |
|
|
|
- checkout |
|
|
|
|
|
|
|
|
|
|
|
- restore_cache: |
|
|
|
- restore_cache: |
|
|
|
keys: |
|
|
|
keys: |
|
|
|
- v1-deps-{{ checksum "yarn.lock" }} |
|
|
|
- v1-deps-{{ checksum "yarn.lock" }} |
|
|
@ -149,10 +143,9 @@ jobs: |
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- browser-tools/install-browser-tools: |
|
|
|
- browser-tools/install-browser-tools: |
|
|
|
install-firefox: false |
|
|
|
install-firefox: false |
|
|
|
install-chrome: false |
|
|
|
install-chrome: true |
|
|
|
install-chromedriver: false |
|
|
|
install-chromedriver: false |
|
|
|
install-geckodriver: false |
|
|
|
install-geckodriver: false |
|
|
|
- install-chrome-custom-linux |
|
|
|
|
|
|
|
- install-chromedriver-custom-linux |
|
|
|
- install-chromedriver-custom-linux |
|
|
|
- run: google-chrome --version |
|
|
|
- run: google-chrome --version |
|
|
|
- run: chromedriver --version |
|
|
|
- run: chromedriver --version |
|
|
@ -404,30 +397,3 @@ commands: |
|
|
|
|
|
|
|
|
|
|
|
echo Done |
|
|
|
echo Done |
|
|
|
chromedriver -v |
|
|
|
chromedriver -v |
|
|
|
install-chrome-custom-linux: |
|
|
|
|
|
|
|
description: Custom script to install chrome with better version support for linux |
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- run: |
|
|
|
|
|
|
|
name: install-custom-chrome-linux |
|
|
|
|
|
|
|
command: | |
|
|
|
|
|
|
|
CHROME_URL=$(curl -s 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json' | jq '.channels.Stable.downloads.chrome[] | select(.platform == "linux64") | .url' | tr -d '"') |
|
|
|
|
|
|
|
echo $CHROME_URL |
|
|
|
|
|
|
|
ZIPFILEPATH="/tmp/chrome.zip" |
|
|
|
|
|
|
|
echo "Downloading from $CHROME_URL" |
|
|
|
|
|
|
|
curl -f --silent $CHROME_URL > "$ZIPFILEPATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BINFILEPATH="$HOME/bin/chrome-linux" |
|
|
|
|
|
|
|
echo "Extracting to $BINFILEPATH" |
|
|
|
|
|
|
|
unzip -p "$ZIPFILEPATH" chrome-linux64/chrome > "$BINFILEPATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Setting execute flag |
|
|
|
|
|
|
|
chmod +x "$BINFILEPATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Updating symlink |
|
|
|
|
|
|
|
ln -nfs "$BINFILEPATH" ~/bin/google-chrome |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Removing ZIP file |
|
|
|
|
|
|
|
rm "$ZIPFILEPATH" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo Done |
|
|
|
|
|
|
|
google-chrome --version |
|
|
|
|