Merge pull request #10468 from ethereum/force-latest-truffle-for-ens

Force ENS external test to use latest Truffle
This commit is contained in:
Harikrishnan Mulackal 2020-12-02 11:24:51 +01:00 committed by GitHub
commit 6513b1f2ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -85,9 +85,9 @@ function download_project
function force_truffle_version
{
local repo="$1"
local version="$1"
sed -i 's/"truffle":\s*".*"/"truffle": "^5.0.42"/g' package.json
sed -i 's/"truffle":\s*".*"/"truffle": "'"$version"'"/g' package.json
}
function truffle_setup

View File

@ -36,6 +36,10 @@ function ens_test
export CONFIG="truffle-config.js"
truffle_setup https://github.com/solidity-external-tests/ens.git upgrade-0.8.0
# Use latest Truffle. Older versions crash on the output from 0.8.0.
force_truffle_version ^5.1.55
run_install install_fn
truffle_run_test compile_fn test_fn

View File

@ -35,7 +35,7 @@ function gnosis_safe_test
truffle_setup https://github.com/solidity-external-tests/safe-contracts.git development_070
force_truffle_version
force_truffle_version ^5.0.42
sed -i 's|github:gnosis/mock-contract#sol_0_5_0|github:solidity-external-tests/mock-contract#master_070|g' package.json
rm -f package-lock.json
rm -rf node_modules/