forked from aragon/aragon-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (43 loc) · 971 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
36
37
38
39
40
41
42
43
language: node_js
cache: npm
branches:
only:
- master
notifications:
email: false
node_js:
- '11'
- '10'
- '9'
- '8'
before_script:
- npm prune
install:
- npm install
script:
- npm run lint
- npm run test:coverage
- travis_wait 30 npm run test:e2e
after_success:
- test $TRAVIS_NODE_VERSION = "11" && npm run report-coverage
before_deploy:
- echo 'Preparing to deploy to NPM'
- echo 'Cleaning any uncommitted changes'
- git --no-pager diff
- git stash
- echo 'Setting up the npm auth token'
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc
deploy:
skip_cleanup: true
provider: script
script: 'npm run publish:nightly'
on:
node_js: '11'
tags: true
after_deploy:
- echo 'Finished deploying to NPM'
- echo 'Uncommitted changes **after** deploy'
- git --no-pager diff
- echo 'Uncommitted changes **before** deploy (that were previously stashed)'
- git stash pop
- git --no-pager diff