Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
publish test report for circle-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenpeeters committed Apr 10, 2017
1 parent 3e2cfd8 commit a2e363c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ machine:

dependencies:
override:
- echo "no install"
- docker run --rm -v $PWD:$PWD -w $PWD node:7 sh -c 'npm install'

test:
override:
- docker run --rm -v $PWD:$PWD -w $PWD node:7 sh -c 'npm install; npm test'
- docker run --rm -v $PWD:$PWD -w $PWD -v $CIRCLE_TEST_REPORTS:$CIRCLE_TEST_REPORTS -e MOCHA_FILE=$CIRCLE_TEST_REPORTS/junit/test-results.xml node:7 sh -c 'npm test'
- docker run --rm -v $PWD:$PWD -w $PWD node:7 sh -c 'npm install; npm run test:reports'
- docker run --rm -v $PWD:$PWD -w $PWD node:7 sh -c 'npm install; npm run eslint'
post:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.coffee",
"scripts": {
"start": "forever --minUptime 2500 --spinSleepTime 5000 ./index.js",
"test": "mocha --recursive tests",
"test": "mocha --reporter mocha-junit-reporter --recursive tests",
"test:watch": "mocha --watch --recursive tests",
"test:coverage": "nyc --reporter=html --reporter=text --reporter=lcov npm test",
"test:mutation": "stryker run",
Expand Down Expand Up @@ -35,6 +35,7 @@
"eslint-plugin-standard": "^3.0.1",
"husky": "^0.13.3",
"mocha": "^3.2.0",
"mocha-junit-reporter": "^1.13.0",
"nyc": "^10.2.0",
"stryker": "^0.5.9",
"stryker-api": "^0.4.2",
Expand Down

0 comments on commit a2e363c

Please sign in to comment.