forked from researchgate/react-intersection-observer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 831 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
language: node_js
node_js:
- "10"
- "6"
cache: yarn
deploy:
local_dir: docs
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
condition: '"$TRAVIS_JOB_NUMBER" == *.1'
before_install: yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
# true needs to be removed after https://github.com/conventional-changelog/conventional-github-releaser/pull/47 is fixed
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release || true; fi'
script:
- yarn run lint
- yarn test -- --ci --coverage
- 'if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run build:storybook; fi'
after_script: greenkeeper-lockfile-upload
after_success:
- bash <(curl -s https://codecov.io/bash)