diff --git a/.circleci/config.yml b/.circleci/config.yml index 69f2135..2c5a102 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.gitignore b/.gitignore index fb30ee3..7b3bfdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .env node_modules/ .nyc_output/ +./coverage/ coverage/ \ No newline at end of file diff --git a/package.json b/package.json index 353b028..d558e58 100644 --- a/package.json +++ b/package.json @@ -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",