11version : 2.1
22
3- orbs :
4- browser-tools :
circleci/[email protected] 5-
63workflows :
74 version : 2
85 workflow :
@@ -14,9 +11,6 @@ workflows:
1411 matrix :
1512 parameters :
1613 simapp : ["simapp47", "simapp50"]
17- - test-chrome :
18- requires :
19- - build
2014
2115jobs :
2216 build :
@@ -154,110 +148,4 @@ jobs:
154148 ./scripts/<< parameters.simapp >>/stop.sh
155149 ./scripts/<< parameters.simapp >>/slow_stop.sh
156150 ./scripts/wasmd/stop.sh
157- test-chrome :
158- machine :
159- # We can't use a containerized environment since it requires remote docker to start custom containers.
160- # However, we can't access the remote docker's network from the primary container. This is a
161- # feature, as documented in https://circleci.com/docs/2.0/building-docker-images/#separation-of-environments
162- # As a consequence, we cannot use the circleci CLI for this job because "You cannot use the machine
163- # executor in local jobs." (https://circleci.com/docs/2.0/local-cli/#limitations-of-running-jobs-locally)
164- #
165- # Available images: https://circleci.com/developer/machine/image/ubuntu-2004
166- # Note that ubuntu-2004:202111-02 and above cause checksum issues when installing yarn packages. No idea why.
167- image : ubuntu-2004:202111-02
168- resource_class : large
169- steps :
170- - browser-tools/install-chrome # Slow because apt update but what can you do 🤷
171- - run :
172- name : Install Git Large File Storage (LFS)
173- # In the current image, `sudo apt install git-lfs` requires `sudo apt update` which is too slow
174- command : |
175- wget -O "$HOME/git-lfs.deb" https://packagecloud.io/github/git-lfs/packages/ubuntu/focal/git-lfs_2.13.3_amd64.deb/download.deb
176- sudo dpkg -i "$HOME/git-lfs.deb"
177- - checkout
178- - run : # start early for less wait time below
179- name : Start wasmd
180- command : ./scripts/wasmd/start.sh
181- background : true
182- - run :
183- name : Start simapp
184- command : ./scripts/simapp50/start.sh
185- background : true
186- - run :
187- name : Start slow simapp
188- command : ./scripts/simapp50/slow_start.sh
189- background : true
190- - run :
191- name : Start Tendermint blockchains
192- command : ./scripts/tendermint/all_start.sh
193- background : true
194- - attach_workspace :
195- at : /tmp/builds
196- - run :
197- name : Merge build folders into project (merge with hardlinks)
198- command : cp --recursive --link /tmp/builds/* .
199- - run :
200- # The images comes with preinstalled nvm, which does not work well with non-login shells
201- name : Uninstall nvm
202- # Moving to trash is faster than deleting (gvfs-trash is not installed on this image)
203- command : |
204- nvm --version && nvm ls
205- mkdir -p ~/.local/share/Trash && mv "$NVM_DIR" ~/.npm ~/.local/share/Trash
206- - run :
207- name : Install nodejs
208- command : |
209- curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -
210- sudo apt-get install -y nodejs
211- - run :
212- name : Install yarn
213- command : |
214- wget -O "$HOME/yarn.deb" https://dl.yarnpkg.com/debian/pool/main/y/yarn/yarn_1.22.15_all.deb
215- sudo dpkg -i "$HOME/yarn.deb"
216- - run :
217- name : Version information
218- command : echo "node $(node --version)"; echo "yarn $(yarn --version)"
219- - run :
220- name : Install libusb
221- # In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
222- command : |
223- wget -O "$HOME/libusb.deb" http://de.archive.ubuntu.com/ubuntu/pool/main/libu/libusb-1.0/libusb-1.0-0-dev_1.0.23-2build1_amd64.deb
224- sudo dpkg -i "$HOME/libusb.deb"
225- - run :
226- name : Install libudev-dev
227- # See https://packages.ubuntu.com/focal/libudev-dev (Ubuntu 20.04)
228- command : |
229- wget -O "$HOME/libudev1.deb" http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libudev1_245.4-4ubuntu3.20_amd64.deb
230- wget -O "$HOME/libudev-dev.deb" http://security.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_245.4-4ubuntu3.20_amd64.deb
231- sudo dpkg -i "$HOME/libudev1.deb"
232- sudo dpkg -i "$HOME/libudev-dev.deb"
233- - run :
234- name : Install Dependencies
235- command : yarn install --immutable --immutable-cache --check-cache
236- - run :
237- name : Initialize wasmd (deploy contracts and friends)
238- command : ./scripts/wasmd/init.sh
239- - run :
240- name : Start socket server
241- command : ./scripts/socketserver/start.sh
242- - run :
243- name : Start http server
244- command : ./scripts/httpserver/start.sh
245- - run :
246- environment :
247- HTTPSERVER_ENABLED : 1
248- SIMAPP50_ENABLED : 1
249- SLOW_SIMAPP50_ENABLED : 1
250- TENDERMINT_ENABLED : 1
251- SOCKETSERVER_ENABLED : 1
252- SKIP_BUILD : 1
253- WASMD_ENABLED : 1
254- command : yarn test-chrome
255- - run :
256- name : Stop chains
257- command : |
258- ./scripts/httpserver/stop.sh
259- ./scripts/socketserver/stop.sh
260- ./scripts/tendermint/all_stop.sh
261- ./scripts/simapp50/stop.sh
262- ./scripts/simapp50/slow_stop.sh
263- ./scripts/wasmd/stop.sh
151+
0 commit comments