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
Branches
Tags
No related merge requests found
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
{
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
......
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment