Skip to content

Commit

Permalink
Travis coveralls fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Nov 28, 2017
1 parent ef38fc1 commit 58ee920
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
@@ -1,13 +1,15 @@
sudo: false

language: node_js
node_js:
- 4
- 5
- 6
- 7
- 8

matrix:
include:
- node_js: "4"
- node_js: "6"
- node_js: "8"
env: COVERALLS=1
env:
global:
- ISTANBUL_COVERAGE: yes

after_success:
- if [ "x$COVERALLS" = "x1" ]; then npm run coveralls; fi
- npm i coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && echo "Coverage data was sent to coveralls!"
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -38,6 +38,7 @@
"enb-source-map": "1.12.0"
},
"devDependencies": {
"istanbul": "^0.4.4",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"enb": ">= 0.16.0 < 2.0.0",
Expand All @@ -48,15 +49,13 @@
"mock-enb": "^0.3.6",
"mock-fs": "^4.1.0",
"must": "^0.13.1",
"nyc": "^11.2.1",
"sinon": "^4.0.0",
"ym": "^0.1.2"
},
"scripts": {
"prepublish": "npm test",
"pretest": "eslint . && jscs -c .jscs.js .",
"test": "mocha -R spec",
"cover": "nyc mocha",
"test": "./node_modules/.bin/istanbul cover -x '**/lib/assets/**' ./node_modules/mocha/bin/_mocha -- -u bdd -R spec test/*.test.js",
"coveralls": "npm i coveralls && npm run cover && nyc report --reporter=text-lcov | coveralls"
}
}

0 comments on commit 58ee920

Please sign in to comment.