[test] Fix external tests.

This commit is contained in:
Alexander Arlt 2020-12-21 11:18:06 -05:00
parent 21dc6c8356
commit a66c8cd6df

View File

@ -97,6 +97,18 @@ function truffle_setup
local repo="$2" local repo="$2"
local branch="$3" 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" setup_solcjs "$DIR" "$soljson" "master" "solc"
download_project "$repo" "$branch" "$DIR" download_project "$repo" "$branch" "$DIR"
} }