UNPKG

634 BYAMLView Raw
1sudo: false
2language: node_js
3cache:
4 directories:
5 - node_modules
6node_js:
7 - "4"
8 - "node"
9install:
10 - npm install
11 - npm update
12 - npm prune
13script:
14 - npm run lint
15 - npm run build
16 - npm run tap
17after_script:
18- |
19 # RELEASE_BRANCHES and NPM_TOKEN defined in Travis settings panel
20 declare exitCode
21 $(npm bin)/travis-after-all
22 exitCode=$?
23 if [[
24 # Execute after all jobs finish successfully
25 $exitCode = 0 &&
26 # Only release on release branches
27 $RELEASE_BRANCHES =~ $TRAVIS_BRANCH &&
28 # Don't release on PR builds
29 $TRAVIS_PULL_REQUEST = "false"
30 ]]; then
31 npm run semantic-release
32 fi
33
\No newline at end of file