forked from rsksmart/lumino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
165 lines (146 loc) · 6.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
conditions: v1
stages:
- name: lint
- name: test
- name: integration
if: (type = cron OR NOT commit_message =~ /\[no ci integration\]/) AND NOT commit_message =~ /\[ci nightly\]/ AND tag IS NOT present
templates:
job-template-test: &job-template-test
before_install:
- mkdir -p $HOME/.bin
- export PATH=$PATH:$HOME/.bin
- git rev-parse HEAD
- .travis/before_install.sh
install:
- .travis/install.sh
script:
- .travis/run.sh
after_success:
- if [[ ${RUN_COVERAGE} = run_coverage ]]; then coveralls; else true; fi
sudo: true
job-template-integration: &job-template-integration
<<: *job-template-test
dist: xenial
sudo: false
language: python
python:
- '3.7'
env:
global:
- GETH_URL_LINUX='https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.20-24d727b6.tar.gz'
- GETH_URL_MACOS='https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.8.20-24d727b6.tar.gz'
- GETH_VERSION='1.8.20'
- SOLC_URL_LINUX='https://github.com/ethereum/solidity/releases/download/v0.4.23/solc-static-linux'
- SOLC_URL_MACOS='https://www.dropbox.com/s/4amq3on2ds1dq36/solc_0.4.23?dl=0'
- SOLC_VERSION='v0.4.23'
- RUN_COVERAGE=$(.travis/coverage.sh)
- COVERALLS_PARALLEL=true
cache:
pip: true
directories:
- "$HOME/.cache/pip"
- "$HOME/.ethash"
- "$HOME/.bin"
notifications:
webhooks:
# Chat notification
- secure: IXBsyQtH29Vkh+Pe2exrbE3L8FJMQFqJ8ZRxkACts7cQtB8Iz1vyjWg9nYE9ZuCj/JWEeMZd/09JvwwKUj8ZEzwj59gFwVQFwTAxJbiDLRsn7WpdI5Q2fQ9ZPZIAbPo/mJejeHC+z3d5UgY72hbhqWuPJAa4ApWWKE5mPFUIr9uxgs01ReWs/y5HaPawQkSQAKVWWsS5R52Oyr9CYQNbfqfWcoLvzdiIZpsBi2r4ZK3NGrBZPGo4b+PkDkWjuBhMJ0FVABFCJT/bT2ORFsmsCDwZ4I3vOrKtJGDybmwONZqr0ymfYo1lbcUp0mE0zJ0ApyRtLqEFiTzaQqenlAZmBAtpDZVvpxFuDwZgFxafpNutO3Aj3Xbfe+aaooPfHA7SoxmxG/3gWY+OyaME8EDePfBHM0c1gGsNHmbPLt8k0lmwYKlNTFtFFyRAbL3700j19utkGroOK6CUYbed9YD96UehQTj7HN8rpLTZzSMh39c1JHVyqxsUZKkhQgY4GPgx2RAIiCVrwc6wN3Ebtwft0hA2UhvDodsc/qBAyz/YnSp2oKZKagLy5747torZybtNOGKCaV2fT3mSTxV2UNwPJ/N94dlTquJNx3StHT0IqD3Kfo5HYKJKHeri6lttTDul3rjAs1xxB2aAMutsyg7dRbBMmuKlK9gAtoS3UKthQdk=
# coveralls 'parallel build done' trigger
- secure: "eFjTor3HH4OiMkBYJAbiri09AV86KbMoPi9khESCOTicM/AnofrAdObguxa4v/s1d2AXbpaEpvy59R2ZaocucwSnw2UoCa/VgTPZf8FOazShn001g0PN2LS6hQFxCTFDowOHZKx9P2jqoUf17rtUDDbGfin6L/aaykJ9MCXxJKY+jlf8roDGArbaXHqntkhphNYuFsmaHHqQqjuRUdCB+Ys8BAQavsePWpyJ0kjlPo4UuSasn6OpRnrz7E6K/3tziFJB0l4hTghU2wzDYF9V+eF9jIyoqoUkcgqTeyjjAO2Rf1If20gQerf09wC8xl965VLgzZ/oQCp4WpIFzorJielLwdE498N0S/gZ0GktqO3jPfS97JaH2+ZkSb2yUdTSLxTHCva9mgqpnQAK8AOEndjMUupbc0UXe440MJzX1wT6IaQ2IwibRwADWAgUqOu5XSaV+rWPvKbBl54NwO7yAVxV20PbKqJMFAYiuVKnRRqnLDhKsZpPxEf0nfrbu/VARKeVuWEg6LkaBFPA4r+EjCQFhT/hwB/DFjoYSCf5PpFcvwL1Tl2gpQcxFhDHKHAITLwYCVCiQHkG1MdQt4fTaBUEm+BcmIbZ4FVfTYbCdys7Hge6RTKxVl8Xe7jDgibHXF4wTPHR81crX9Xk3nUm6VwJzluaTUi1OKj8Nathqbk="
jobs:
include:
- stage: lint
sudo: false
install: pip install -r requirements-lint.txt
script:
- git rev-parse HEAD
- make lint
- make mypy
- stage: test
<<: *job-template-test
script: .travis/run_smoketest.sh
after_script: /bin/true
env:
- SMOKETEST=1
- stage: test
<<: *job-template-test
script: .travis/run_smoketest.sh
after_script: /bin/true
env:
- SMOKETEST=1
- RUN_SYNAPSE=1
- stage: test
<<: *job-template-test
env:
- TEST='raiden/tests/unit'
- stage: test
<<: *job-template-test
env:
- TEST='raiden/tests/fuzz'
- TRANSPORT_OPTIONS='--hypothesis-show-statistics'
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-general\]/)
env:
- TEST='raiden/tests/integration --ignore=raiden/tests/integration/transfer --ignore=raiden/tests/integration/long_running --ignore=raiden/tests/integration/api --ignore=raiden/tests/integration/contracts --ignore=raiden/tests/integration/cli'
- TRANSPORT_OPTIONS='--transport=udp'
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-general\]/)
env:
- TEST='raiden/tests/integration --ignore=raiden/tests/integration/transfer --ignore=raiden/tests/integration/long_running --ignore=raiden/tests/integration/api --ignore=raiden/tests/integration/contracts --ignore=raiden/tests/integration/cli'
- TRANSPORT_OPTIONS='--transport=matrix'
- RUN_SYNAPSE=1
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-transfer\]/)
env:
- TEST='raiden/tests/integration/transfer'
- TRANSPORT_OPTIONS='--transport=udp'
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-transfer\]/)
env:
- TEST='raiden/tests/integration/transfer'
- TRANSPORT_OPTIONS='--transport=matrix'
- RUN_SYNAPSE=1
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-long-running\]/)
env:
- TEST='raiden/tests/integration/long_running'
- TRANSPORT_OPTIONS='--transport=udp'
- RUN_COVERAGE=no_coverage
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-long-running\]/)
env:
- TEST='raiden/tests/integration/long_running'
- TRANSPORT_OPTIONS='--transport=matrix'
- RUN_SYNAPSE=1
- RUN_COVERAGE=no_coverage
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-contracts\]/)
env:
- TEST='raiden/tests/integration/contracts'
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-api\]/)
env:
- TEST='raiden/tests/integration/api'
- TRANSPORT_OPTIONS='--transport=udp'
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-api\]/)
env:
- TEST='raiden/tests/integration/api'
- TRANSPORT_OPTIONS='--transport=matrix'
- RUN_SYNAPSE=1
- stage: integration
<<: *job-template-integration
if: (type = cron OR NOT commit_message =~ /\[ci / OR commit_message =~ /\[ci integration-cli\]/)
env:
- TEST='raiden/tests/integration/cli'
- TRANSPORT_OPTIONS='--transport=matrix'
- RUN_SYNAPSE=1