diff --git a/.circleci/config.yml b/.circleci/config.yml index 9e5f0c8..a4f9b20 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,10 +36,10 @@ jobs: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter - run: - name: Run unit tests + name: Run unit tests and send coverage results command: | ./cc-test-reporter before-build - npm test + npm run ci ./cc-test-reporter after-build --exit-code $? register_image: <<: *defaults diff --git a/package.json b/package.json index 9af356f..ad39dd7 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "backup": "bin/backup" }, "scripts": { + "ci": "jest --colors --ci --coverage", "lint": "eslint --color -c .eslintrc.js --ext js .", "test": "jest --colors" }, @@ -17,13 +18,13 @@ "url": "git+https://github.com/LD4P/sinopia_user_backup.git" }, "keywords": [ - "sinopia", "aws", - "cognito", - "user", "backup", + "cognito", + "javascript", "node", - "javascript" + "s3", + "sinopia" ], "license": "Apache-2.0", "bugs": {