From 3a22828a2c379cd7851dbf7da306b8f9c8862c7d Mon Sep 17 00:00:00 2001 From: andsandv Date: Fri, 24 Oct 2014 15:00:38 +0200 Subject: [PATCH] Only report coverage on travis build --- .travis.yml | 2 +- unleash-server/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 43bd17d9a6..4aac1e3068 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: java jdk: oraclejdk8 script: -- cd unleash-server && npm install && npm test +- cd unleash-server && npm install && npm test-travis - cd .. && cd unleash-client-java && mvn test notifications: hipchat: diff --git a/unleash-server/package.json b/unleash-server/package.json index 7123357798..c9ef7124b6 100644 --- a/unleash-server/package.json +++ b/unleash-server/package.json @@ -19,7 +19,8 @@ "scripts": { "start": "node server.js", "start-dev": "NODE_ENV=local supervisor --ignore ./node_modules/,./public/js server.js", - "test": "jshint server.js lib test && jsxhint public/js/*.jsx && mocha test test/* && npm run cover", + "test": "jshint server.js lib test && jsxhint public/js/*.jsx && mocha test test/*", + "test-travis": "jshint server.js lib test && jsxhint public/js/*.jsx && mocha test test/* && npm run cover", "tdd": "mocha --watch test test/*", "test-bamboo-ci": "mocha test test/*", "cover": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"