diff --git a/.dockerignore b/.dockerignore index fe33129..9108798 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,5 @@ npm-debug.log **/libs index.html bower.json -README.md \ No newline at end of file +README.md +coverage diff --git a/.eslintignore b/.eslintignore index f166136..19f6263 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ /node_modules /libs /demoassets +/coverage diff --git a/.gitignore b/.gitignore index 7a1537b..428a1df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea node_modules +coverage diff --git a/.npmignore b/.npmignore index 7217801..c382fb0 100644 --- a/.npmignore +++ b/.npmignore @@ -9,4 +9,5 @@ nodejs-tests .dockerignore dockerfile .travis.yml -memory-leak-test.js \ No newline at end of file +memory-leak-test.js +coverage diff --git a/.travis.yml b/.travis.yml index 3685a49..ed94335 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ +before_script: npm install codacy-coverage --save +script: npm run test-codacy-coverage sudo: required language: node_js node_js: - - "node" \ No newline at end of file + - "node" diff --git a/package.json b/package.json index 26cf76e..0b05fb8 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "homepage": "https://github.com/Huddle/Resemble.js", "scripts": { "test": "jest nodejs-tests", + "test-codacy-coverage": + "jest nodejs-tests --coverage && cat ./coverage/lcov.info | codacy-coverage", "test-watch": "jest --watch nodejs-tests", "precommit": "lint-staged", "lint": "eslint **/*.js --fix"