Skip to content

Commit 7a246be

Browse files
author
Julien Kernec'h
committed
Fix test commands
1 parent 3ab10db commit 7a246be

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

circle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ test:
2424
- sed '/sonar.projectVersion/d' ./sonar-project.properties > tmp && mv tmp sonar-project.properties
2525
- echo sonar.projectVersion=`cat package.json | python -c "import json,sys;obj=json.load(sys.stdin);print obj['version'];"` >> sonar-project.properties
2626
override:
27-
- node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --recursive tests --timeout=5000 --reporter=mocha-junit-reporter
28-
- node_modules/.bin/junit-viewer --results=test-results.xml --save=test-results.html
27+
- node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --recursive tests --timeout=5000 --reporter=mocha-junit-reporter --exit
28+
- node_modules/.bin/junit-viewer --results=test-results.xml --save=test-results.html --exit
2929
post:
3030
- if [[ "$CIRCLE_BRANCH" = "develop" ]]; then sonar-runner-2.4/bin/sonar-runner -X -e -Dsonar.analysis.mode=publish -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN -Dsonar.password=$SONAR_PASS; fi
3131
- if [[ -n "$CI_PULL_REQUEST" ]]; then sonar-runner-2.4/bin/sonar-runner -X -e -Dsonar.analysis.mode=preview -Dsonar.github.pullRequest=$(basename $CI_PULL_REQUEST) -Dsonar.github.repository=$REPO_SLUG -Dsonar.github.oauth=$GITHUB_TOKEN -Dsonar.login=$SONAR_LOGIN -Dsonar.password=$SONAR_PASS -Dsonar.host.url=$SONAR_HOST_URL; fi
3232
- rm -rf sonar-runner-2.4 sonar-runner-dist-2.4.zip
3333
- cp -f -v ./test-results.xml $CIRCLE_ARTIFACTS
3434
- mkdir -p $CIRCLE_TEST_REPORTS/junit
3535
- mv -f -v ./test-results.xml $CIRCLE_TEST_REPORTS/junit
36-
- mv -f -v ./test-results.html $CIRCLE_ARTIFACTS
36+
- mv -f -v ./test-results.html $CIRCLE_ARTIFACTS

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Phone number utils library",
55
"main": "lib/index.js",
66
"scripts": {
7-
"test": "cp .env.tpl .env && node_modules/.bin/mocha --recursive tests --ui=bdd --reporter=spec --timeout=5000 && rm .env",
8-
"cover": "node_modules/.bin/istanbul cover _mocha -- --recursive tests --timeout=5000",
7+
"test": "cp .env.tpl .env && node_modules/.bin/mocha --recursive tests --ui=bdd --reporter=spec --timeout=5000 --exit && rm .env",
8+
"cover": "node_modules/.bin/istanbul cover _mocha -- --recursive tests --timeout=5000 --exit",
99
"jshint": "node_modules/.bin/jshint --show-non-errors --exclude=coverage,node_modules,docs",
1010
"docs": "node_modules/.bin/jsdoc -d docs -t ./node_modules/minami -r --readme README.md ./lib",
1111
"prepare-release": "npm test && npm run jshint",

0 commit comments

Comments
 (0)