2020-09-18 16:50:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
export GOPATH=~/go
|
|
|
|
export PATH=$PATH:$GOPATH/bin
|
|
|
|
|
2021-10-08 13:38:42 +00:00
|
|
|
# remove existing daemon
|
2022-04-26 10:52:19 +00:00
|
|
|
rm -rf ~/.chibaclonk*
|
2020-09-24 17:50:47 +00:00
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
# build ethermint binary
|
|
|
|
make install
|
|
|
|
|
2021-05-11 11:54:55 +00:00
|
|
|
cd tests/solidity
|
2020-09-18 16:50:08 +00:00
|
|
|
|
|
|
|
if command -v yarn &> /dev/null; then
|
2020-09-24 17:50:47 +00:00
|
|
|
yarn install
|
|
|
|
else
|
|
|
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
|
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
|
|
sudo apt update && sudo apt install yarn
|
|
|
|
yarn install
|
2020-09-18 16:50:08 +00:00
|
|
|
fi
|
|
|
|
|
2021-10-21 11:06:20 +00:00
|
|
|
yarn test --network ethermint $@
|