Skip to content

Commit

Permalink
Update coveralls and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvndre committed Nov 14, 2017
1 parent 08a060c commit cbd3df0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ before_script:
- cp ./.env.dist ./.env
script:
- ./node_modules/.bin/bithound check git@github.com:alexvndre/expressjs-starter-pack.git
- make test-coverage
- make test
after_script:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- make test-coveralls
# - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ test-coverage: ## launch tests with coverage
test-coveralls: ## launch tests with coverage and send to coveralls
@export PORT=0 && \
export NODE_ENV=test && \
export COVERALLS_SERVICE_NAME=travis-ci && \
$(BABEL_NODE) $(BABEL_ISTANBUL) cover $(MOCHA_) --report lcovonly --check-coverage -- --recursive --exit && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && \
rm -rf ./coverage

0 comments on commit cbd3df0

Please sign in to comment.