Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed Jul 14, 2013
1 parent dcf9804 commit 903f372
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
@@ -0,0 +1,6 @@
language: node_js
node_js:
- "0.11"
- "0.10"
- "0.8"
script: make test-coveralls
9 changes: 7 additions & 2 deletions Makefile
Expand Up @@ -6,7 +6,7 @@ MOCHA_OPTS =
install:
@npm install

test: install test-unit test-cov
test: test-unit test-cov

test-unit: install
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
Expand All @@ -21,4 +21,9 @@ test-cov:
@$(MAKE) test-unit MOCHA_OPTS='--require blanket' REPORTER=html-cov > coverage.html
@$(MAKE) test-unit MOCHA_OPTS='--require blanket' REPORTER=travis-cov

.PHONY: test test-unit test-cov
test-coveralls:
@$(MAKE) test-unit
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
@-$(MAKE) test MOCHA_OPTS='--require blanket' REPORTER=mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js

.PHONY: test test-unit test-cov test-coveralls
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -10,6 +10,8 @@
}
, "devDependencies": {
"mocha": "*"
, "mocha-lcov-reporter": "*"
, "coveralls": "*"
, "should": "*"
, "restify": "*"
, "blanket": "*"
Expand All @@ -25,4 +27,7 @@
"type": "git"
, "url": "git@github.com:bestng/oauthic-weibo.git"
}
, "bugs": "https://github.com/bestng/oauthic-weibo/issues"
, "license": "MIT"
, "engines" : { "node" : ">=0.8" }
}
1 change: 0 additions & 1 deletion test/oauthic.weibo.test.js
Expand Up @@ -245,4 +245,3 @@ describe('oauthic.weibo.test.js', function () {

})
})

0 comments on commit 903f372

Please sign in to comment.