Skip to content
Snippets Groups Projects
Commit 8961be41 authored by Christopher Johnson's avatar Christopher Johnson
Browse files

adds codeCov.io, removes code climate

closes #1670
parent be835fc7
No related branches found
No related tags found
No related merge requests found
language: node_js language: node_js
node_js: node_js:
- 'node' - 'node'
before_install: install:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - npm install -g codecov
- chmod +x ./cc-test-reporter
before_script: before_script:
- npm install - npm install
# Pipe the coverage data to Code Climate script:
after_script: - npm test
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - codecov
{ {
"collectCoverage": true,
"collectCoverageFrom": [ "collectCoverageFrom": [
"src/**/*.{js,jsx}" "src/**/*.{js,jsx}"
], ],
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/*", "lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/*",
"server": "node_modules/.bin/http-server", "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", "test:watch": "jest -c jest.json --watch",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"build:dev": "webpack --mode=development", "build:dev": "webpack --mode=development",
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
"babel-jest": "^23.6.0", "babel-jest": "^23.6.0",
"babel-loader": "^8.0.4", "babel-loader": "^8.0.4",
"babel-plugin-named-asset-import": "^0.2.3", "babel-plugin-named-asset-import": "^0.2.3",
"codecov": "^3.1.0",
"concurrently": "^4.0.1", "concurrently": "^4.0.1",
"css-loader": "^1.0.0", "css-loader": "^1.0.0",
"enzyme": "^3.4.4", "enzyme": "^3.4.4",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment