Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jun 9, 2017
1 parent 7e28672 commit c0767d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Makefile
Expand Up @@ -20,13 +20,12 @@ doc:
@doxmate build -o out

test:
@mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) \
$(TESTS)
@mocha --reporter $(REPORTER) --timeout $(TIMEOUT) $(TESTS)

test-es5:
transcompile:
@babel lib/ -d es5/

test-es5: transcompile
@mocha --compilers js:babel-register -t $(TIMEOUT) -R spec $(TESTS)

test-cov:
Expand All @@ -35,8 +34,8 @@ test-cov:
--timeout $(TIMEOUT) \
$(TESTS)

test-coveralls: lint
@nyc mocha -t $(TIMEOUT) -R spec $(TESTS)
test-coveralls: lint transcompile
@nyc mocha --compilers js:babel-register -t $(TIMEOUT) -R spec $(TESTS)
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@nyc report --reporter=text-lcov | coveralls

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -24,6 +24,7 @@
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.4.0",
"co-mocha": "^1.1.3",
"coveralls": "^2.13.1",
"doxmate": "^0.3.1",
"eslint": "^3.11.1",
"expect.js": "^0.3.1",
Expand Down

0 comments on commit c0767d7

Please sign in to comment.