From a66c8cd6df25f2c3344fe1788c00031f1f2c5476 Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Mon, 21 Dec 2020 11:18:06 -0500 Subject: [PATCH] [test] Fix external tests. --- test/externalTests/common.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/externalTests/common.sh b/test/externalTests/common.sh index 804d9a529..16a0c095e 100644 --- a/test/externalTests/common.sh +++ b/test/externalTests/common.sh @@ -97,6 +97,18 @@ function truffle_setup local repo="$2" local branch="$3" + # only execute this, if script is executed in circleci. + if [[ "${CIRCLECI}" ]] + then + # truffle need to have a vyper executable in ${PATH}, + # so we just add a fake vyper executable to /usr/bin. + if ! command -v vyper &> /dev/null + then + sudo touch /usr/bin/vyper + sudo chmod +x /usr/bin/vyper + fi + fi + setup_solcjs "$DIR" "$soljson" "master" "solc" download_project "$repo" "$branch" "$DIR" }