diff --git a/.circleci/config.yml b/.circleci/config.yml index cd00056313..8614948386 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,6 +26,9 @@ workflows: - test: requires: - build + matrix: + parameters: + simapp: ["simapp42", "simapp44"] - test-node-v14: requires: - build @@ -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 @@ -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 @@ -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 @@ -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: