-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·45 lines (45 loc) · 1.07 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
sudo: false
language: node_js
node_js:
- 10
os:
- linux
- osx
cache: yarn
notifications:
email: false
env:
global:
- CC_VERSION=latest
branches:
only:
- master
- /^greenkeeper/.*$/
except:
- gh-pages
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-${CC_VERSION}-darwin-amd64 > ./cc-test-reporter; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-${CC_VERSION}-linux-amd64 > ./cc-test-reporter; fi
- chmod +x ./cc-test-reporter
install:
- yarn install
before_script:
- ./cc-test-reporter before-build
script:
- yarn run clean
- yarn run lint
- yarn run test
- yarn run build
after_script:
- ./cc-test-reporter after-build -t lcov --exit-code $TRAVIS_TEST_RESULT
jobs:
fast_finish: true
include:
- stage: release
node_js: 10
deploy:
skip_cleanup: true
provider: script
script: npx travis-deploy-once "npx semantic-release"
on:
branch: master