1
1
version : 2.1
2
2
commands :
3
- cmd-wait-for-rpc :
3
+ cmd-wait-for-port :
4
+ parameters :
5
+ port :
6
+ type : integer
4
7
steps :
5
8
- run : sleep 5
6
9
- run :
7
10
shell : /bin/sh
8
11
command : |
9
- wget --retry-connrefused --waitretry=1 --read-timeout=120 --timeout=120 -t 100 http://localhost:8545
12
+ wget --retry-connrefused --waitretry=1 --read-timeout=120 --timeout=120 -t 100 http://localhost:<<parameters.port>>
10
13
:
11
14
jobs :
12
15
job-compile :
86
89
- run :
87
90
command : npx hardhat node
88
91
background : true
89
- - cmd-wait-for-rpc
92
+ - cmd-wait-for-port :
93
+ port : 8545
90
94
- run : node publish deploy --network local --fresh-deploy --yes --use-ovm --ignore-safety-checks --ignore-custom-parameters --deployment-path ./publish/deployed/local-ovm
91
95
- run : npm run test:prod -- --no-compile --use-ovm --patch-fresh-deployment --deployment-path ./publish/deployed/local-ovm
92
96
job-prod-diff-tests-local :
@@ -104,7 +108,8 @@ jobs:
104
108
- run :
105
109
command : npx hardhat node
106
110
background : true
107
- - cmd-wait-for-rpc
111
+ - cmd-wait-for-port :
112
+ port : 8545
108
113
- run : node publish deploy --network local --fresh-deploy --yes
109
114
- run : npm run test:prod -- --patch-fresh-deployment
110
115
job-prod-diff-tests :
@@ -123,12 +128,47 @@ jobs:
123
128
- run :
124
129
command : npx hardhat node --target-network mainnet
125
130
background : true
126
- - cmd-wait-for-rpc
131
+ - cmd-wait-for-port :
132
+ port : 8545
127
133
- run : node publish prepare-deploy --network mainnet
128
134
- run : node publish deploy --ignore-safety-checks --add-new-synths --use-fork --yes --network mainnet
129
135
- run : npm run test:prod:gas -- --target-network mainnet --patch-fresh-deployment && npx codechecks codechecks.prod.yml
130
136
- store_artifacts :
131
137
path : test-gas-used-prod.log
138
+ job-prod-tests-ovm :
139
+ working_directory : ~/repo
140
+ machine :
141
+ image : ubuntu-2004:202010-01
142
+ docker_layer_caching : true
143
+ resource_class : large
144
+ steps :
145
+ - checkout
146
+ - attach_workspace :
147
+ at : .
148
+ - run :
149
+ name : Prepare docker containers
150
+ command : |
151
+ git clone git@github.com:ethereum-optimism/optimism-integration.git
152
+ cd optimism-integration
153
+ docker-compose pull
154
+ - run :
155
+ name : Start chains
156
+ background : true
157
+ command : |
158
+ cd optimism-integration
159
+ ./up.sh
160
+ - cmd-wait-for-port :
161
+ port : 8545
162
+ - cmd-wait-for-port :
163
+ port : 9545
164
+ - run :
165
+ name : Deploy OVM Synthetix instances
166
+ command : |
167
+ node publish deploy-ovm-pair
168
+ - run :
169
+ name : Run OVM production tests
170
+ command : |
171
+ npm run test:prod:ovm
132
172
job-prod-tests :
133
173
working_directory : ~/repo
134
174
docker :
@@ -143,7 +183,8 @@ jobs:
143
183
- run :
144
184
command : npx hardhat node --target-network mainnet
145
185
background : true
146
- - cmd-wait-for-rpc
186
+ - cmd-wait-for-port :
187
+ port : 8545
147
188
- run : npm run test:prod:gas -- --target-network mainnet && npx codechecks codechecks.prod.yml
148
189
- store_artifacts :
149
190
path : test-gas-used-prod.log
@@ -320,6 +361,10 @@ workflows:
320
361
- job-prod-tests :
321
362
requires :
322
363
- job-prepare
364
+ - job-prod-tests-ovm :
365
+ name : job-prod-tests-ovm
366
+ requires :
367
+ - job-prepare
323
368
- job-prod-diff-tests-local :
324
369
name : job-prod-diff-tests-local
325
370
requires :
0 commit comments