Skip to content

Commit 86730d2

Browse files
committed
display logfile when tests fail
1 parent 86bae1b commit 86730d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ install:
2222
- npm install
2323
script:
2424
- npm run build -- --noEmit
25-
- npm test
25+
- npm test:ci
2626
- if [[ $TRAVIS_PULL_REQUEST = "false" ]] ; then cat ./coverage/lcov.info | codacy-coverage --language=typescript; fi
27+
after_failure:
28+
- tail -n 2000 instamancer_tests.log

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"build": "tsc",
2222
"prepack": "tsc --declaration",
2323
"test": "jest",
24+
"test:ci": "jest --bail",
2425
"lint": "tslint -p tsconfig.json -p tests/tsconfig.json",
2526
"lint:fix": "npm run lint -- --fix",
2627
"prettier": "prettier --write \"{src,tests}/**/*.ts\"",

0 commit comments

Comments
 (0)