This commit is contained in:
Cyrille 2019-05-09 10:14:05 +01:00
parent ed376a6dae
commit 6bb828e8bc
3 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ jobs:
- run: npm install
- run: npm run clean
- run: npm run coverage
- run: npm run codacy
- run: npm run clean
- store_artifacts:
path: ./coverage

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.env
node_modules/
.nyc_output/
./coverage/
coverage/

View File

@ -6,7 +6,8 @@
"scripts": {
"test": "node ./test.js",
"clean": "node ./clean.js",
"coverage": "nyc --reporter=lcovonly --report-dir=./coverage npm run test | codacy-coverage"
"coverage": "nyc --reporter=lcovonly --report-dir=./coverage npm run test",
"codacy": "cat ./coverage/lcov.info | codacy-coverage && rm -rf ./coverage"
},
"repository": {
"type": "git",