Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1999 from fatso83/fix-docker-headless-tests
Fix Circle CI headless builds breaking
- Loading branch information
Showing
3 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Docker Compose setup file | ||
# Purpose: testbed for changes to Circle CI setup | ||
# Usage: `docker-compose up` | ||
version: "3" | ||
services: | ||
node: | ||
image: "circleci/node:10.15.1-browsers" | ||
user: "root" | ||
working_dir: /home/node/app | ||
|
||
# use the one built-in to the image to avoid potential issues like | ||
# https://github.com/GoogleChrome/puppeteer/issues/3774 | ||
# This variable is used by all scripts - including the `test-esm-bundle` | ||
environment: | ||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true' | ||
SINON_CHROME_BIN: /usr/bin/google-chrome-stable | ||
volumes: | ||
# This mounts the local directory - saving `npm install` | ||
- ./:/home/node/app | ||
|
||
# There are differences between Circle CI and Docker `command`, | ||
# forcing us to do this little workaround | ||
command: > | ||
sh -c " $$SINON_CHROME_BIN --version | ||
&& npm run test-headless -- --chrome $$SINON_CHROME_BIN --allow-chrome-as-root | ||
&& npm run test-webworker -- --chrome $$SINON_CHROME_BIN --allow-chrome-as-root | ||
&& npm run test-esm-bundle | ||
&& npm run test-node | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters