forked from accordproject/ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 800 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
language: node_js
node_js:
- '10'
matrix:
include:
- os: linux
dist: trusty
- os: windows
before_install: |
set -e
export PATH="./$HOME/node_modules/.bin:$PATH"
npm install -g @alrra/travis-scripts
date
install: |
set -e
date
npm install -g lerna@^3.15.0
npm install 2>&1
date
script: npm run test 2>&1
deploy:
provider: script
script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis/deploy.sh; fi'
skip_cleanup: true
on:
all_branches: true
repo: accordproject/ergo
condition: "$TRAVIS_OS_NAME = linux"
after_failure: tail -n +1 -- /home/travis/.npm/_logs/*-debug.log
after_success: if [ $TRAVIS_OS_NAME = 'linux' ] && [ $TRAVIS_REPO_SLUG = 'accordproject/ergo' ]; then npm run coverage; fi
cache:
directories:
- node_modules