Skip to content

Commit

Permalink
add build to travis to test build and made ts errors quiet for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imatlopez committed Jun 24, 2019
1 parent 7605011 commit 0fb5c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- redis-server

script:
- npm run build
- npm run test:cov || npm run test:cov || npm run test:cov

env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"test": "NODE_ENV=test mocha test/**/*.ts",
"test:cov": "NODE_ENV=test node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -r ts-node/register -R spec --exit test/**/*.ts",
"test:cov": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -r ts-node/register -R spec --exit test/**/*.ts",
"build": "rm -rf built && tsc",
"prepublishOnly": "npm run build && npm test",
"bench": "matcha benchmarks/*.js",
Expand Down

0 comments on commit 0fb5c88

Please sign in to comment.