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.
22 lines
328 B
22 lines
328 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
### Test truffle integration
|
||
|
|
||
|
mkdir test_truffle
|
||
|
cd test_truffle
|
||
|
|
||
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
|
||
|
nvm install --lts
|
||
|
nvm use --lts
|
||
|
|
||
|
npm install truffle
|
||
|
truffle unbox metacoin
|
||
|
slither .
|
||
|
|
||
|
if [ $? -eq 8 ]
|
||
|
then
|
||
|
echo "Truffle test failed"
|
||
|
exit -1
|
||
|
fi
|
||
|
|