forked from sinonjs/sinon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (27 loc) · 1.06 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 check-esm-bundle-runs-in-browser
&& npm run test-node
"