forked from CodeChain-io/codechain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (103 loc) · 2.78 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
language: rust
rust:
- 1.39.0
stages:
- name: test
if: branch != docker-build
- name: deploy
if: branch = docker-build
jobs:
include:
- stage: test
name: osx
os: osx
before_install:
- SKIP=`.travis/check-mergify-merge` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
- SKIP=`.travis/check-change '(^spec/|\.md$)'` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
install:
- nvm install 12
- nvm use 12
- npm install -g yarn
before_script:
- cargo fetch --verbose
- cargo build
- cd test && yarn
script:
- yarn start-short
- yarn start-long
after_failure:
- ./upload_logs.sh
- os: linux
name: linux
before_install:
- SKIP=`.travis/check-mergify-merge` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
- SKIP=`.travis/check-change '^spec/|\.md$'` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
install:
- nvm install 12
- nvm use 12
- npm install -g yarn
before_script:
- cargo fetch --verbose
- cargo build
- cd test && yarn
script:
- yarn start-short
- yarn start-long
after_failure:
- ./upload_logs.sh
- os: linux
name: dynamic-validator-1
before_install:
- SKIP=`.travis/check-mergify-merge` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
- SKIP=`.travis/check-change '^spec/|\.md$'` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
install:
- nvm install 12
- nvm use 12
- npm install -g yarn
before_script:
- cargo build --verbose
- cd test && yarn
script:
- yarn start-dyn-val-1
after_failure:
- ./upload_logs.sh
- os: linux
name: dynamic-validator-2
before_install:
- SKIP=`.travis/check-mergify-merge` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
- SKIP=`.travis/check-change '^spec/|\.md$'` && if [[ "$SKIP" = "skip" ]]; then exit 0; fi
install:
- nvm install 12
- nvm use 12
- npm install -g yarn
before_script:
- cargo build --verbose
- cd test && yarn
script:
- yarn start-dyn-val-2
after_failure:
- ./upload_logs.sh
- stage: deploy
name: deploy
script: skip
services:
- docker
deploy:
provider: script
script: bash docker_push.sh
on:
branch: docker-build
notifications:
webhooks: https://webhooks.gitter.im/e/71bb03cf9abce5b02c43
cache:
timeout: 1000
cargo: true
directories:
- "$HOME/.rustup"
- "$HOME/.cache/yarn"
- "$TRAVIS_BUILD_DIR/test/node_modules"
before_cache:
- rm -rf $HOME/.cargo/registry
- rm -rf $TRAVIS_BUILD_DIR/target
git:
depth: 50