Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
updates travis configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldziher committed May 11, 2020
1 parent afb91e7 commit 9152b28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
language: node_js
node_js:
- 12
dist: trusty
addons:
chrome: stable
branches:
only:
- master
cache:
directories:
- node_modules
before_script:
- yarn global add nyc
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- yarn test
- yarn coveralls
- nyc --reporter=lcov yarn coverage
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
notifications:
email: false
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"prepublishOnly": "yarn build",
"build": "rimraf dist && rollup -c rollup.config.js",
"postpublish": "rimraf dist",
"coveralls": "jest --coverage --silent && cat ./coverage/lcov.info | coveralls",
"test": "jest --silent"
"coveralls": "yarn coverage && cat ./coverage/lcov.info | coveralls",
"test": "jest --silent",
"coverage": "yarn test --coverage"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9152b28

Please sign in to comment.