#!/usr/bin/env bash ### Test Dapp integration mkdir test_dapp cd test_dapp || exit 255 # The dapp init process makes a temporary local git repo and needs certain values to be set git config --global user.email "ci@trailofbits.com" git config --global user.name "CI User" curl https://nixos.org/nix/install | sh # shellcheck disable=SC1090 . "$HOME/.nix-profile/etc/profile.d/nix.sh" nix-env -iA nixpkgs.cachix cachix use dapp git clone --recursive https://github.com/dapphub/dapptools "$HOME/.dapp/dapptools" nix-env -f "$HOME/.dapp/dapptools" -iA dapp seth solc hevm ethsign dapp init slither . if [ $? -eq 21 ] then exit 0 fi echo "Truffle test failed" exit 255