Skip to content

Commit

Permalink
[travis] Add travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Apr 24, 2018
1 parent 38c49cf commit 92014f7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
package-lock.json
coverage
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
node_js:
- "9"
- "8"
- "6"
- "4"
script:
- "npm run test-travis"
after_script:
- "npm install coveralls && cat coverage/lcov.info | coveralls"
matrix:
fast_finish: true
notifications:
irc:
channels:
- "irc.freenode.org#bigpipe"
on_success: change
on_failure: change
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"description": "Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks",
"main": "index.js",
"scripts": {
"test": "mocha test.js"
"100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"test": "mocha test.js",
"watch": "mocha --watch test.js",
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- test.js",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +33,7 @@
"homepage": "https://github.com/3rd-Eden/env-variable",
"devDependencies": {
"assume": "^2.0.1",
"mocha": "^5.1.1"
"mocha": "^5.1.1",
"istanbul": "^0.4.5"
}
}

0 comments on commit 92014f7

Please sign in to comment.