forked from ethereum/eth-account
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
201 lines (197 loc) · 4.84 KB
/
config.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
version: 2.0
# heavily inspired by https://raw.githubusercontent.com/pinax/pinax-wiki/6bd2a99ab6f702e300d708532a6d1d9aa638b9f8/.circleci/config.yml
common: &common
working_directory: ~/repo
steps:
- checkout
- run:
name: merge pull request base
command: ./.circleci/merge_pr.sh
- run:
name: merge pull request base (2nd try)
command: ./.circleci/merge_pr.sh
when: on_fail
- run:
name: merge pull request base (3nd try)
command: ./.circleci/merge_pr.sh
when: on_fail
- restore_cache:
keys:
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies
command: pip install --user tox
- run:
name: run tox
command: ~/.local/bin/tox -r
- save_cache:
paths:
- .hypothesis
- .tox
- ~/.cache/pip
- ~/.local
- ./eggs
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
integration: &integration
working_directory: ~/repo
steps:
- checkout
- run:
name: merge pull request base
command: ./.circleci/merge_pr.sh
- run:
name: merge pull request base (2nd try)
command: ./.circleci/merge_pr.sh
when: on_fail
- run:
name: merge pull request base (3rd try)
command: ./.circleci/merge_pr.sh
when: on_fail
- restore_cache:
keys:
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
- run:
name: install dependencies (python)
command: pip install --user tox
- run:
name: install dependencies (node)
command: sudo -E bash tests/integration/ethers-cli/setup_node_v12.sh && sudo apt-get install -y nodejs
- run:
name: Build ethers-cli
command: cd tests/integration/ethers-cli && sudo npm install -g . && cd ../../../
- run:
name: run tox
command: ~/.local/bin/tox -r
- save_cache:
paths:
- .hypothesis
- .tox
- ~/.cache/pip
- ~/.local
- ./eggs
- tests/integration/ethers-cli/node_modules
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
jobs:
docs:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: docs
py37-lint:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-lint
py37-core:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-core
py38-lint:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-lint
py38-core:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-core
py39-lint:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-lint
py39-core:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-core
py310-lint:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-lint
py310-core:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-core
py37-integration:
<<: *integration
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-integration
py38-integration:
<<: *integration
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-integration
py39-integration:
<<: *integration
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-integration
py310-integration:
<<: *integration
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-integration
py37-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.7
environment:
TOXENV: py37-wheel-cli
py38-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-wheel-cli
py39-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.9
environment:
TOXENV: py39-wheel-cli
py310-wheel-cli:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-wheel-cli
workflows:
version: 2
test:
jobs:
- docs
- py37-lint
- py38-lint
- py39-lint
- py310-lint
- py37-core
- py38-core
- py39-core
- py310-core
- py37-integration
- py38-integration
- py39-integration
- py310-integration
- py37-wheel-cli
- py38-wheel-cli
- py39-wheel-cli
- py310-wheel-cli