Skip to content

Commit

Permalink
Add CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
emonkak committed Apr 16, 2016
1 parent 579be2d commit b32518f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: node_js
node_js:
- "5"
- "4"
- "0.12"
- "iojs"
script:
- npm run build
- npm test
- npm run lint
after_script:
- npm run coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
cache:
directories:
- node_modules
sudo: false
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build": "tsc --rootDir src --outDir dist",
"clean": "rm -fr coverage dist",
"coverage": "isparta cover --include-all-sources --report html --report text node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register",
"coverage": "isparta cover --include-all-sources --report lcovonly --report html --report text ./node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register",
"lint": "eslint dist",
"test": "mocha --compilers js:babel-core/register --recursive",
"watch": "tsc --watch --rootDir src --outDir dist"
Expand All @@ -19,6 +19,7 @@
"babel-preset-es2015-node5": "^1.1.2",
"babel-preset-stage-0": "^6.3.13",
"cash-rm": "^0.2.0",
"coveralls": "^2.11.9",
"eslint": "^2.4.0",
"isparta": "^4.0.0",
"mocha": "^2.4.5",
Expand Down

0 comments on commit b32518f

Please sign in to comment.