Skip to content

Commit

Permalink
add coveralls integration to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 22, 2019
1 parent 3fcfddf commit 2159eec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dist
/sample
/coverage
.coveralls.yml
.nyc_output
.nyc_output
secrets.zip
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@

sudo: required
language: node_js
node_js:
- '10'
- '10'
install:
- npm install
- npm install
script:
- npm test
- npm run compile
- npm test
- npm run coveralls
before_install:
- openssl aes-256-cbc -K $encrypted_8c2b83827436_key -iv $encrypted_8c2b83827436_iv
-in secrets.zip.enc -out secrets.zip -d
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"compile": "rm -rf dist/ && tsc",
"test": "mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts",
"test": "nyc --reporter=text --reporter=lcov mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts",
"coveralls": "cat ./coverage/lcov.info | coveralls -v"
},
"keywords": [],
Expand Down
Binary file added secrets.zip.enc
Binary file not shown.

0 comments on commit 2159eec

Please sign in to comment.