mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
394 B
25 lines
394 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
### Test truffle integration
|
||
|
|
||
|
mkdir test_truffle
|
||
4 years ago
|
cd test_truffle || exit 255
|
||
6 years ago
|
|
||
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
||
4 years ago
|
# shellcheck disable=SC1090
|
||
6 years ago
|
source ~/.nvm/nvm.sh
|
||
6 years ago
|
nvm install --lts
|
||
|
nvm use --lts
|
||
|
|
||
6 years ago
|
npm install -g truffle
|
||
6 years ago
|
truffle unbox metacoin
|
||
|
slither .
|
||
|
|
||
4 years ago
|
if [ $? -eq 8 ]
|
||
4 years ago
|
then
|
||
6 years ago
|
exit 0
|
||
6 years ago
|
fi
|
||
|
|
||
6 years ago
|
echo "Truffle test failed"
|
||
4 years ago
|
exit 255
|