Skip to content

Commit

Permalink
Run npm scripts from Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jm42 committed Jan 15, 2019
1 parent 806fd50 commit 14d2c1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -10,10 +10,10 @@ node_js:
cache: yarn

before_script:
- yarn global add jasmine nyc coveralls
- yarn global add coveralls

script:
- nyc jasmine
- npm run testcov

after_success:
- nyc report --reporter=text-lcov | coveralls
- npm run --silent lcov | coveralls
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -20,8 +20,9 @@
},
"scripts": {
"test": "jasmine",
"cov": "nyc jasmine",
"coverage": "nyc report --reporter=html jasmine"
"testcov": "nyc jasmine",
"htmlcov": "nyc report --reporter=html",
"lcov": "nyc report --reporter=text-lcov"
},
"nyc": {
"exclude": [
Expand Down

0 comments on commit 14d2c1b

Please sign in to comment.