Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install newest Chrome browser before running tests #6115

Merged
merged 12 commits into from
Jan 31, 2020
25 changes: 25 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,30 @@ executors:
PLATFORM: mac

commands:
install-latest-chrome:
description: Install latest Google Chrome (stable)
parameters:
browser:
default: "electron"
description: browser shortname to target
type: string
flotwig marked this conversation as resolved.
Show resolved Hide resolved
steps:
- run:
name: Install latest Google Chrome (stable)
command: |
if [ << parameters.browser >> == "chrome" ]; then
echo "**** Running Chrome tests. Installing latest stable version of Google Chrome. ****"
apt-get update
apt-get install google-chrome-stable -y
echo "**** Location of Google Chrome Installation: "`which google-chrome`" ****"
echo "**** Google Chrome Version: "`google-chrome --version`" ****"
else
echo "**** Not updating Chrome. Running tests in '<< parameters.browser >>' ****"
fi
run-e2e-tests:
parameters:
browser:
default: "electron"
description: browser shortname to target
type: string
chunk:
Expand All @@ -66,6 +87,8 @@ commands:
steps:
- attach_workspace:
at: ~/
- install-latest-chrome:
browser: << parameters.browser >>
- run:
command: npm run test-e2e -- --chunk << parameters.chunk >> --browser << parameters.browser >>
working_directory: packages/server
Expand Down Expand Up @@ -493,6 +516,8 @@ jobs:
steps:
- attach_workspace:
at: ~/
- install-latest-chrome:
browser: chrome
- run:
command: npm start
background: true
Expand Down