Skip to content

Commit

Permalink
Run tests against simapp44 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Oct 24, 2021
1 parent a2b6e74 commit 7edc0d3
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ workflows:
- test:
requires:
- build
matrix:
parameters:
simapp: ["simapp42", "simapp44"]
- test-node-v14:
requires:
- build
Expand Down Expand Up @@ -61,6 +64,9 @@ jobs:
paths:
- packages/*/build/*
test:
parameters:
simapp:
type: string
machine:
# We can't use a containerized environment since it requires remote docker to start custom containers.
# However, we can't access the remote docker's network from the primary container. This is a
Expand Down Expand Up @@ -88,11 +94,11 @@ jobs:
background: true
- run:
name: Start simapp
command: ./scripts/simapp42/start.sh
command: ./scripts/<< parameters.simapp >>/start.sh
background: true
- run:
name: Start slow simapp
command: ./scripts/simapp42/slow_start.sh
command: ./scripts/<< parameters.simapp >>/slow_start.sh
background: true
- run:
name: Start Tendermint blockchains
Expand Down Expand Up @@ -143,16 +149,18 @@ jobs:
name: Start socket server
command: ./scripts/socketserver/start.sh
- run:
name: Run tests
environment:
LAUNCHPAD_ENABLED: 1
ERC20_ENABLED: 1
SIMAPP42_ENABLED: 1
SLOW_SIMAPP42_ENABLED: 1
TENDERMINT_ENABLED: 1
SOCKETSERVER_ENABLED: 1
SKIP_BUILD: 1
WASMD_ENABLED: 1
command: yarn test --stream
command: |
[ "<< parameters.simapp >>" = "simapp42" ] && export SIMAPP42_ENABLED=1 SLOW_SIMAPP42_ENABLED=1
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
yarn test --stream
- run:
name: Run CLI selftest
working_directory: packages/cli
Expand All @@ -176,8 +184,8 @@ jobs:
command: |
./scripts/socketserver/stop.sh
./scripts/tendermint/all_stop.sh
./scripts/simapp42/stop.sh
./scripts/simapp42/slow_stop.sh
./scripts/<< parameters.simapp >>/stop.sh
./scripts/<< parameters.simapp >>/slow_stop.sh
./scripts/wasmd/stop.sh
./scripts/launchpad/stop.sh
test-node-v14:
Expand Down

0 comments on commit 7edc0d3

Please sign in to comment.