Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
resolves: #44
  • Loading branch information
Yeti-or committed Feb 23, 2018
1 parent e3987c6 commit 4a6a76b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 78 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sudo: false

language: node_js

matrix:
include:
- node_js: "8"
- node_js: "9"
env: COVERALLS=1

after_success:
- if [ "x$COVERALLS" = "x1" ] && npm i coveralls; then
npm run cover -- --coverageReporters=text-lcov | coveralls;
fi

76 changes: 0 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"license": "MPL-2.0",
"scripts": {
"lint": "eslint .",
"test": "jest"
"pretest": "npm run lint",
"test": "jest",
"cover": "jest --coverage"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"index.js",
"generators/*.js",
Expand Down

0 comments on commit 4a6a76b

Please sign in to comment.