Skip to content

Commit

Permalink
trial run
Browse files Browse the repository at this point in the history
  • Loading branch information
thompsongl committed Feb 7, 2020
1 parent 3c7a06a commit f0c8f9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"sideEffects": false,
"scripts": {
"start": "BABEL_MODULES=false webpack-dev-server --port 8030 --inline --hot --config=src-docs/webpack.config.js",
"test-docker": "docker pull zenato/puppeteer && docker run -i --rm --cap-add=SYS_ADMIN --volume $PWD:/app --workdir /app -e GIT_COMMITTER_NAME=test -e GIT_COMMITTER_EMAIL=test -e HOME=/tmp --name puppeteer-chrome zenato/puppeteer bash -c 'npm config set spin false && /opt/yarn*/bin/yarn && npm run test && npm run start-test-server-and-a11y-test && npm run build'",
"test-docker": "sh ./scripts/test_docker.sh",
"sync-docs": "node ./scripts/docs-sync.js",
"build-docs": "BABEL_MODULES=false cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 webpack --config=src-docs/webpack.config.js",
"build": "yarn extract-i18n-strings && node ./scripts/compile-clean.js && node ./scripts/compile-eui.js && node ./scripts/compile-scss.js $npm_package_name",
Expand Down
7 changes: 7 additions & 0 deletions scripts/test_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

docker pull zenato/puppeteer
docker run -i --rm --cap-add=SYS_ADMIN --volume $PWD:/app --workdir /app \
-e GIT_COMMITTER_NAME=test -e GIT_COMMITTER_EMAIL=test -e HOME=/tmp \
zenato/puppeteer \
bash -c 'npm config set spin false && /opt/yarn*/bin/yarn && npm run test && npm run start-test-server-and-a11y-test && npm run build'

0 comments on commit f0c8f9f

Please sign in to comment.