From b3202f6b3991905aa12c0dc19c6c28b07f8f46ba Mon Sep 17 00:00:00 2001 From: Djordje Mijovic Date: Fri, 12 Feb 2021 12:55:36 +0100 Subject: [PATCH] Ading CI job to check gas costs. --- .circleci/soltest_all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/soltest_all.sh b/.circleci/soltest_all.sh index 143af7105..ae9c79683 100755 --- a/.circleci/soltest_all.sh +++ b/.circleci/soltest_all.sh @@ -69,8 +69,10 @@ do # run tests against hera ewasm evmc vm, only if OPTIMIZE == 0 and evm version is byzantium EWASM_ARGS="" [ "${EVM}" = "byzantium" ] && [ "${OPTIMIZE}" = "0" ] && EWASM_ARGS="--ewasm" + ENFORCE_GAS_ARGS="" + [ "${EVM}" = "istanbul" ] && ENFORCE_GAS_ARGS="--enforce-gas-cost" - [[ " $RUN_STEPS " == *" $STEP "* ]] && EVM="$EVM" OPTIMIZE="$OPTIMIZE" SOLTEST_FLAGS="$SOLTEST_FLAGS $EWASM_ARGS" BOOST_TEST_ARGS="-t !@nooptions" "${REPODIR}/.circleci/soltest.sh" + [[ " $RUN_STEPS " == *" $STEP "* ]] && EVM="$EVM" OPTIMIZE="$OPTIMIZE" SOLTEST_FLAGS="$SOLTEST_FLAGS $ENFORCE_GAS_ARGS $EWASM_ARGS" BOOST_TEST_ARGS="-t !@nooptions" "${REPODIR}/.circleci/soltest.sh" STEP=$((STEP + 1)) done done