-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
33 lines (32 loc) · 922 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
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
script:
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then commitlint-travis; fi
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then yarn test; fi
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then yarn generate:man; fi
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then yarn generate:ghpage; fi
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then yarn monitor; fi
- if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then yarn lint:pr; fi
after_success:
- yarn report-coverage
deploy:
- provider: pages
skip-cleanup: true
keep-history: true
github-token: $GH_TOKEN
local-dir: src/www
on:
branch: master
condition: $TRAVIS_EVENT_TYPE != "cron"
- provider: script
skip-cleanup: true
script:
- yarn semantic-release
on:
branch: master
condition: $TRAVIS_EVENT_TYPE != "cron"