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 etherlime integration
|
||
|
|
||
|
mkdir test_etherlime
|
||
4 years ago
|
cd test_etherlime || 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
|
||
5 years ago
|
nvm install 10.17.0
|
||
|
nvm use 10.17.0
|
||
6 years ago
|
|
||
|
npm i -g etherlime
|
||
|
etherlime init
|
||
|
slither .
|
||
|
|
||
4 years ago
|
if [ $? -eq 7 ]
|
||
4 years ago
|
then
|
||
6 years ago
|
exit 0
|
||
|
fi
|
||
|
|
||
|
echo "Etherlime test failed"
|
||
4 years ago
|
exit 255
|