-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis integration + coverage reporting.
- Loading branch information
1 parent
344ef85
commit 61412d8
Showing
11 changed files
with
385 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10" | ||
script: | ||
- make test | ||
- make test-ci-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.PHONY: test release | ||
|
||
MOCHA=node_modules/.bin/mocha | ||
COVERALLS=node_modules/.bin/coveralls | ||
_MOCHA=node_modules/.bin/_mocha | ||
ISTANBUL=node_modules/.bin/istanbul | ||
|
||
test: | ||
npm test | ||
|
||
test-ci-coverage: | ||
npm install coveralls | ||
npm install istanbul | ||
@rm -rf coverage | ||
$(ISTANBUL) cover $(_MOCHA) --report lcovonly -- -R tap | ||
|
||
@echo | ||
@echo Sending report to coveralls.io... | ||
@cat ./coverage/lcov.info | $(COVERALLS) | ||
@rm -rf ./coverage | ||
@echo Done | ||
|
||
release: | ||
ifeq ($(strip $(version)),) | ||
@echo "\033[31mERROR:\033[0;39m No version provided." | ||
@echo "\033[1;30mmake release version=1.0.0\033[0;39m" | ||
else | ||
make test | ||
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' package.json | ||
rm *.bak | ||
git add . | ||
git commit -a -m "Released $(version)." | ||
git tag v$(version) | ||
git push origin master | ||
git push origin --tags | ||
npm publish | ||
@echo "\033[32mv${version} released\033[0;39m" | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.