-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
35 lines (30 loc) · 692 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
34
35
sudo: false
language: node_js
node_js:
- 9.0.0
env:
global:
- YARN_VERSION=1.3.2
before_install:
- export PATH="$HOME/.yarn/bin:$PATH"
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
script:
- yarn run eslint
- yarn run test
- yarn run flow-coverage
after_success:
- ./node_modules/.bin/codecov
- |
if [ "$TRAVIS_BRANCH" == 'master' ] && [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then
./tasks/deploy.sh
fi
cache:
yarn: true
directories:
- "~/.yarn"
- node_modules
notifications:
email: evenchange4@gmail.com