The home for Hyperlane core contracts, sdk packages, and other infrastructure
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.
 
 
 
 
 
 
hyperlane-monorepo/scripts/test-solidity.sh

25 lines
570 B

# script for running solidity tests locally
# Run from root (./scripts/test-solidity.sh)
set -e
# compile contracts
cd ./solidity/abacus-core
npm run compile
cd ../abacus-xapps
npm run compile
cd ../../
# copy artifacts
cp -R ./solidity/abacus-xapps/artifacts ./typescript/abacus-tests
cp -R ./solidity/abacus-core/artifacts ./typescript/abacus-tests
# copy cache
cp -R ./solidity/abacus-xapps/cache ./typescript/abacus-tests
cp -R ./solidity/abacus-core/cache ./typescript/abacus-tests
# run tests
cd ./typescript/abacus-tests
npm i
npm run testNoCompile
cd ../..