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.
28 lines
454 B
28 lines
454 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
### Test embark integration
|
||
|
|
||
|
mkdir test_embark
|
||
4 years ago
|
cd test_embark || 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
|
|
||
5 years ago
|
npm install -g embark@4.2.0
|
||
6 years ago
|
embark demo
|
||
4 years ago
|
cd embark_demo || exit 255
|
||
6 years ago
|
npm install
|
||
|
slither . --embark-overwrite-config
|
||
|
|
||
4 years ago
|
if [ $? -eq 4 ]
|
||
4 years ago
|
then
|
||
6 years ago
|
exit 0
|
||
6 years ago
|
fi
|
||
|
|
||
6 years ago
|
echo "Embark test failed"
|
||
4 years ago
|
exit 255
|
||
6 years ago
|
|