-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 933 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
27
28
29
30
31
32
33
language: node_js
node_js:
- node
- lts/*
- lts/carbon
cache: yarn
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
- yarn lint
script:
- yarn test --coverage
- codecov
after_success:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- rm ./cc-test-reporter
- yarn build # Prevents failing PRs to be merged accidentally
after_failure:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- rm ./cc-test-reporter
before_deploy:
- sed -i '/^\/dist\/$/d' .gitignore
deploy:
provider: heroku
app: kitten-as-a-service
api_key: $HEROKU_AUTH_TOKEN
skip_cleanup: true
on:
branch: master
after_deploy:
- sleep 10
- curl --fail --silent --show-error https://kitten-as-a-service.herokuapp.com/ >/dev/null || travis_terminate 1