Skip to content

Commit

Permalink
Updated make config.
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Mar 22, 2019
1 parent 608374d commit 0b46d81
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
COVERALLS :=./node_modules/coveralls/bin/coveralls.js
MOCHA:= ./node_modules/.bin/mocha
MOCHAEXEC:= ./node_modules/.bin/_mocha
ISTANBUL:= ./node_modules/istanbul/lib/cli.js
TESTPATH:= ./test/*.js
ISTANBUL:= ./node_modules/.bin/istanbul
TYPEDOC:= ./node_modules/.bin/typedoc

test:
Expand All @@ -10,9 +10,13 @@ test:

test-cover:
echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@NODE_ENV=test ./node_modules/.bin/istanbul cover \
./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true
@NODE_ENV=test $(ISTANBUL) cover \
$(MOCHAEXEC) --report lcovonly -- -R spec && \
cat ./coverage/lcov.info | $(COVERALLS) || true

cover:
tsc
$(ISTANBUL) cover $(MOCHAEXEC) -- -R spec ./test/*.js

docs:
$(TYPEDOC)
Expand Down

0 comments on commit 0b46d81

Please sign in to comment.