Static Analyzer for Solidity
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.
slither/scripts/ci_test_embark.sh

28 lines
454 B

#!/usr/bin/env bash
### Test embark integration
mkdir test_embark
cd test_embark || exit 255
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
# shellcheck disable=SC1090
source ~/.nvm/nvm.sh
nvm install 10.17.0
nvm use 10.17.0
npm install -g embark@4.2.0
embark demo
cd embark_demo || exit 255
npm install
slither . --embark-overwrite-config
if [ $? -eq 4 ]
then
exit 0
fi
echo "Embark test failed"
exit 255