From b25fe21ba1dc45d74d6a0fc349a7f427e8059440 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 22 Oct 2021 11:47:37 +0200 Subject: [PATCH] Run tests against simapp44 in CI --- .circleci/config.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cd00056313..0b036c70ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,6 +26,9 @@ workflows: - test: requires: - build + matrix: + parameters: + simapp: ["42", "44"] - 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/simapp<< parameters.simapp >>/start.sh background: true - run: name: Start slow simapp - command: ./scripts/simapp42/slow_start.sh + command: ./scripts/simapp<< parameters.simapp >>/slow_start.sh background: true - run: name: Start Tendermint blockchains @@ -146,13 +152,14 @@ jobs: 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 >>" = "42" ] && export SIMAPP42_ENABLED=1 SLOW_SIMAPP42_ENABLED=1 + [ "<< parameters.simapp >>" = "44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1 + yarn test --stream - run: name: Run CLI selftest working_directory: packages/cli