Last active
July 23, 2024 13:14
-
-
Save nican0r/e453549f4b2f824792814f2b788e2f31 to your computer and use it in GitHub Desktop.
CloudExec Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set the directory to upload to the server. | |
| [input] | |
| jobName = "Create_Chimera_App test" | |
| directory = "." | |
| timeout = "1h" | |
| [commands] | |
| setup = ''' | |
| if ! command -v slither >/dev/null 2>&1; then | |
| echo "Installing solc and slither..." | |
| python3 -m venv ~/venv | |
| source ~/venv/bin/activate | |
| pip3 install solc-select slither-analyzer crytic-compile | |
| solc-select install 0.8.17 | |
| solc-select use 0.8.17 | |
| fi | |
| echo "Downloading echidna..." | |
| curl -Lo /tmp/echidna.zip \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer API_READ_TOKEN" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/crytic/echidna/actions/artifacts/1691095777/zip | |
| echo "Extracting echidna..." | |
| unzip /tmp/echidna.zip -d /tmp | |
| tar -xzf /tmp/echidna-HEAD-08041e4-x86_64-linux.tar.gz -C /tmp | |
| echo "Installing echidna..." | |
| mv -f /tmp/echidna /usr/local/bin | |
| rm /tmp/echidna-HEAD-08041e4-x86_64-linux.tar.gz | |
| echo "Installed echidna!" | |
| if ! command -v forge >/dev/null 2>&1; then | |
| echo "Installing foundry..." | |
| curl -L https://foundry.paradigm.xyz | bash | |
| source /.bashrc | |
| foundryup | |
| fi | |
| echo "Prerequisites installed successfully!" | |
| echo "Forge version:" | |
| forge --version | |
| ''' | |
| # This command is run from the input directory | |
| # after the setup script completes. | |
| run = "echidna . --contract CryticTester --config echidna.yaml" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment