diff --git a/.travis.yml b/.travis.yml index 1fdbc14..89ce450 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,5 @@ node_js: - stable script: - npm run lint - - npm run test:ci + - npm run test:coverage +after_success: npm run coverage:codecov diff --git a/package.json b/package.json index 500bc08..e3a7d04 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,10 @@ "docker:deploy": "./scripts/deploy_image.sh", "doit": "./scripts/doit.sh", "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js 'test/**/*.@(js)'", + "test:coverage": "nyc npm run test", "test:watch": "npm run test -- --watch", - "test:coverage": "nyc npm run test && nyc report --reporter=lcov", - "test:ci": "npm run test:coverage && codecov", + "coverage:report": "nyc report --reporter=lcov", + "coverage:codecov": "npm run coverage:report && codecov", "start": "webpack-dev-server --config webpack-dev.config.js" }, "babel": {