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_truffle.sh

23 lines
405 B

#!/usr/bin/env bash
### Test truffle integration
mkdir test_truffle
cd test_truffle || 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 --lts
nvm use --lts
npm install -g truffle
truffle unbox metacoin
if ! slither . --no-fail-pedantic; then
2 years ago
echo "Truffle test failed"
exit 1
fi
exit 0