Files
slither/scripts/ci_test_truffle.sh
2026-01-06 18:58:41 +01:00

24 lines
422 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
### 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
echo "Truffle test failed"
exit 1
fi
exit 0