Skip to content

Commit

Permalink
build(travis): add linux test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jul 22, 2020
1 parent 39856a6 commit caa7513
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 106 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,27 @@ branches:
- /^v\d*\.\d*\.\d*$/
- /^dependabot/.*$/

script:
script:
- echo "Running tests against $(node -v)..."
- yarn test

jobs:
include:
- stage: test
name: linux deployment
node_js: lts/*
os: linux
script:
- sudo apt-get -y install poppler-data poppler-utils
- yarn test
- stage: test
name: produce coverage
node_js: lts/*
os: windows
script:
- jest --coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rm -rf ./coverage
- jest --coverage
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rm -rf ./coverage
- stage: deploy
name: NPM release
node_js: lts/*
Expand Down
Loading

0 comments on commit caa7513

Please sign in to comment.