-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
26 lines (26 loc) · 998 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
language: node_js
node_js:
- "12.13.0"
cache:
yarn: true
directories:
- node_modules
before_script:
- 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:
- ./scripts/run-travis-tests.sh
after_success:
- ./node_modules/.bin/codecov # CODECOV_TOKEN is not required for Travis to test public repositories
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js # COVERALLS_SERVICE_NAME and COVERALLS_REPO_TOKEN env variables is not required for Travis
- cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage # Needs CODACY_PROJECT_TOKEN env variable
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT # Needs CC_TEST_REPORTER_ID env variable
deploy:
provider: script
skip_cleanup: true
script: scripts/deploy-to-gh-pages.sh # Needs GIT_REMOTE_URL_WITH_AUTH
on:
branch: release