From 92cc094787eb573aa978829357395d678d279a0e Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Thu, 22 Mar 2018 18:24:42 +0100 Subject: [PATCH] Removed old coverage script and updated travis config. --- .travis.yml | 2 +- seasoned_api/package.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 58dade9..93f8278 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ git: submodules: true script: - yarn test - - yarn cov + - yarn coverage before_install: - cd seasoned_api before_script: yarn diff --git a/seasoned_api/package.json b/seasoned_api/package.json index 1cb0b46..9349cb4 100644 --- a/seasoned_api/package.json +++ b/seasoned_api/package.json @@ -9,13 +9,11 @@ "scripts": { "start": "cross-env SEASONED_CONFIG=conf/development.json NODE_PATH=. node src/webserver/server.js", "test": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. mocha --recursive test", - "cov": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. nyc mocha --recursive test && nyc report --reporter=text-lcov | coveralls", - "coverage": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. istanbul cover -x script/autogenerate-documentation.js --include-all-sources --dir test/.coverage node_modules/mocha/bin/_mocha --recursive test/**/* -- --report lcovonly && cat test/.coverage/lcov.info | coveralls && rm -rf test/.coverage", + "coverage": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. nyc mocha --recursive test && nyc report --reporter=text-lcov | coveralls", "lint": "./node_modules/.bin/eslint src/" }, "dependencies": { "bcrypt-nodejs": "^0.0.3", - "blanket": "^1.2.3", "body-parser": "~1.18.2", "cross-env": "~5.1.4", "express": "~4.16.0",