forked from gofsd/arc.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 978 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
language: node_js
node_js:
- "10.14.1"
cache: npm
sudo: required
services:
- docker
notifications:
email: false
before_install:
- sudo apt-get install libsecret-1-dev
script:
- echo 'npm ci:' && echo -en 'travis_fold:start:script.1\\r'
- npm ci
- echo -en 'travis_fold:end:script.1\\r'
- docker-compose up -d graph-node
- ./scripts/wait-for-it.sh 127.0.0.1:8545
- ./scripts/wait-for-it.sh 127.0.0.1:8000
- ./scripts/wait-for-it.sh 127.0.0.1:8020
- echo 'Debug info:' && echo -en 'travis_fold:start:script.3\\r'
- docker-compose logs ganache
- docker-compose logs graph-node
- echo -en 'travis_fold:end:script.3\\r'
# sleep a bit to make sure the subgraph is ready
- sleep 5
- echo -en 'travis_fold:end:script.2\\r'
- npm run lint
- npm run test
- npm run build
after_success:
# - npm run report-coverage
# - test $TRAVIS_BRANCH = "master" && npm run deploy-docs
# - test $TRAVIS_BRANCH = "master" && npm run semantic-release