forked from daostack/subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 904 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
language: node_js
node_js:
- '10.16.0'
dist: xenial
services:
- docker
addons:
apt:
packages:
- docker-ce
- libsecret-1-dev
install:
- docker --version
- docker-compose --version
script:
- docker-compose up -d graph-node
- docker-compose logs graph-node
- echo 'npm ci:' && echo -en 'travis_fold:start:script.1\\r'
- npm ci
- echo -en 'travis_fold:end:script.1\\r'
# deploy contracts etc
- npm run deploy
- echo 'Debug info:' && echo -en 'travis_fold:start:script.2\\r'
- docker images --digests | grep graph-node
- docker-compose exec graph-node graph-node --version
# - docker-compose logs graph-node
- echo -en 'travis_fold:end:script.2\\r'
- sleep 120
- npm run lint
- npm run jest
after_success:
- chmod +x deploy-travis.sh
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_EVENT_TYPE = "push" && travis_wait 30 ./deploy-travis.sh