mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
External tests: Replace hard-coded version in force_truffle_version() with a parameter
This commit is contained in:
parent
e10712c173
commit
bbf2471f64
@ -85,9 +85,9 @@ function download_project
|
|||||||
|
|
||||||
function force_truffle_version
|
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
|
function truffle_setup
|
||||||
|
@ -35,7 +35,7 @@ function gnosis_safe_test
|
|||||||
|
|
||||||
truffle_setup https://github.com/solidity-external-tests/safe-contracts.git development_070
|
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
|
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 -f package-lock.json
|
||||||
rm -rf node_modules/
|
rm -rf node_modules/
|
||||||
|
Loading…
Reference in New Issue
Block a user