Skip to content

Instantly share code, notes, and snippets.

@samwx
Created September 25, 2018 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samwx/85774c9a8c85b46e295b2ef75c63f7df to your computer and use it in GitHub Desktop.
Save samwx/85774c9a8c85b46e295b2ef75c63f7df to your computer and use it in GitHub Desktop.
Travis file for typescript projects with Jest and coveralls
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