From 8961be4154f7b54ea2d0235be9f386c031fe9789 Mon Sep 17 00:00:00 2001 From: Christopher Johnson <chjohnson39@gmail.com> Date: Wed, 23 Jan 2019 17:49:54 +0100 Subject: [PATCH] adds codeCov.io, removes code climate closes #1670 --- .travis.yml | 11 +++++------ jest.json | 1 + package.json | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e86c7e42..083cdc5ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,12 @@ language: node_js node_js: - 'node' -before_install: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter +install: + - npm install -g codecov before_script: - npm install -# Pipe the coverage data to Code Climate -after_script: - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT +script: + - npm test + - codecov diff --git a/jest.json b/jest.json index 941e5a45d..65b010d0e 100644 --- a/jest.json +++ b/jest.json @@ -1,4 +1,5 @@ { + "collectCoverage": true, "collectCoverageFrom": [ "src/**/*.{js,jsx}" ], diff --git a/package.json b/package.json index 73b3ad0ae..b211892c4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/*", "server": "node_modules/.bin/http-server", - "test": "npm run build && npm run lint && jest -c jest.json --coverage", + "test": "npm run build && npm run lint && jest -c jest.json", "test:watch": "jest -c jest.json --watch", "build": "webpack --mode=production", "build:dev": "webpack --mode=development", @@ -46,6 +46,7 @@ "babel-jest": "^23.6.0", "babel-loader": "^8.0.4", "babel-plugin-named-asset-import": "^0.2.3", + "codecov": "^3.1.0", "concurrently": "^4.0.1", "css-loader": "^1.0.0", "enzyme": "^3.4.4", -- GitLab