Skip to content

Commit

Permalink
Always pull the latest docker image (node:8) before running the tests…
Browse files Browse the repository at this point in the history
… in (#510)

docker. By default docker will use whatever image is available locally
if the node:8 image already exists. This meant that different versions
of npm/node were being run depending on which jenkins worker picked up
the job.
  • Loading branch information
Crazybus authored Mar 16, 2018
1 parent 9dc5790 commit 38ab7ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"module": "src",
"types": "src/index.d.ts",
"jsnext:main": "src",
"docker_image": "node:8",
"scripts": {
"start": "webpack-dev-server --port 8030 --inline --hot --config=src-docs/webpack.config.js",
"test-docker": "docker run --rm -i --user=$(id -u):$(id -g) -e HOME=/tmp -v $(pwd):/app -w /app node:8 bash -c 'npm config set spin false && yarn && npm run test'",
"test-docker": "docker pull $npm_package_docker_image && docker run --rm -i --user=$(id -u):$(id -g) -e HOME=/tmp -v $(pwd):/app -w /app $npm_package_docker_image bash -c 'npm config set spin false && yarn && npm run test'",
"sync-docs": "node ./scripts/docs-sync.js",
"build-docs": "webpack --config=src-docs/webpack.config.js",
"build": "node ./scripts/compile-clean.js && node ./scripts/compile-eui.js && node ./scripts/compile-scss.js",
Expand Down

0 comments on commit 38ab7ca

Please sign in to comment.