mirror of
https://github.com/crytic/slither.git
synced 2026-10-12 02:12:39 +00:00
26 lines
465 B
Bash
Executable File
26 lines
465 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
### 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 [email protected]
|
|
embark demo
|
|
cd embark_demo || exit 255
|
|
npm install
|
|
|
|
if ! slither . --embark-overwrite-config; then
|
|
echo "Embark test failed"
|
|
exit 255
|
|
fi
|
|
|
|
exit 0
|