Created
September 25, 2018 20:24
-
-
Save samwx/85774c9a8c85b46e295b2ef75c63f7df to your computer and use it in GitHub Desktop.
Travis file for typescript projects with Jest and coveralls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: node_js | |
node_js: | |
- 'node' # use latest stable nodejs version | |
before_script: | |
- npm install | |
- npm run test | |
- npm run coverage | |
script: | |
- npm run build # jest test with coverage flag does coverage too | |
after_script: | |
- 'cat coverage/lcov.info | ./node_modules/.bin/coveralls' # sends the coverage report to coveralls | |
after_success: | |
- npm run semantic-release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment