forked from OperationCode/front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (38 loc) · 1.12 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
language: node_js
# node_js: # not needed - `.nvmrc` at root-level
cache:
yarn: true
directories:
- 'node_modules'
before_install:
- yarn global add greenkeeper-lockfile@2
install:
# TODO: Run with --pure-lockfile if on non-Greenkeeper branch
- yarn --silent
before_script:
- greenkeeper-lockfile-update
- 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:
- yarn lint
- yarn test:ci
- yarn build
after_script:
- greenkeeper-lockfile-upload
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
before_deploy:
- yarn add now
deploy:
- provider: script
script: echo 'No build on feature branches. @zeit/now deploys static exports automatically.'
skip_cleanup: true
on:
all_branches: true
master: false
- provider: script
script: now --local-config=./now.master.json --token $NOW_TOKEN && now alias --local-config=./now.master.json --token $NOW_TOKEN
skip_cleanup: true
on:
all_branches: false
master: true