-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
87 lines (87 loc) · 2.85 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: node_js
node_js:
- "10"
before_install:
- CHANGED=$(.travis/check-change "^$TRAVIS_JOB_NAME/|^\.travis.yml$|\.editorconfig$") && if [[ "$CHANGED" = "unchanged" ]]; then exit 0; fi
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "1.17.2"
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- cd $TRAVIS_JOB_NAME
- yarn install
jobs:
include:
- stage: test
name: fee-monitor
os: linux
script:
- yarn lint
- yarn build
- name: helicopter
os: linux
before_script:
- docker pull kodebox/codechain:v1.1.1
- docker run -d -p 8080:8080 kodebox/codechain:v1.1.1 --jsonrpc-interface 0.0.0.0 -c solo --reseal-min-period 0 --enable-devel-api
- psql -c 'CREATE DATABASE "codechain-indexer-dev";' -U postgres
- psql -c "CREATE USER \"user\" WITH ENCRYPTED PASSWORD 'password';" -U postgres
- docker ps -a
script:
- yarn lint
- yarn build
- git clone --depth 1 https://github.com/CodeChain-io/codechain-indexer.git
- pushd codechain-indexer
- yarn install
- NODE_ENV=dev yarn run migrate
- yarn start &
- popd
- NODE_ENV=test yarn test
- name: indexer-monitor
os: linux
script:
- yarn lint
- yarn build
- yarn test
- name: juggle-ccc
os: linux
script:
- yarn lint
- yarn build
- name: monitor
os: linux
script:
- yarn lint
- yarn test
- yarn build
- name: tick-tock
os: linux
before_script:
- docker pull kodebox/codechain:v1.1.1
- docker run -d -p 8080:8080 kodebox/codechain:v1.1.1 --jsonrpc-interface 0.0.0.0 -c solo --reseal-min-period 0 --enable-devel-api
- psql -c 'CREATE DATABASE "codechain-indexer-dev";' -U postgres
- psql -c "CREATE USER \"user\" WITH ENCRYPTED PASSWORD 'password';" -U postgres
- docker ps -a
script:
- yarn lint
- yarn build
- git clone --depth 1 https://github.com/CodeChain-io/codechain-indexer.git
- pushd codechain-indexer
- yarn install
- NODE_ENV=dev yarn run migrate
- yarn start &
- popd
- NODE_ENV=test yarn test
- name: timelock
os: linux
script:
- yarn lint
- yarn build
- name: val-val
os: linux
script:
- yarn lint
- yarn test
services:
- docker
- postgresql
addons:
postgresql: "9.5"
cache: yarn