mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes solc path override in Truffle config.
This commit is contained in:
parent
3f00a0fc8c
commit
40b58adcdb
@ -32,11 +32,11 @@ function colony_test
|
|||||||
{
|
{
|
||||||
OPTIMIZER_LEVEL=3
|
OPTIMIZER_LEVEL=3
|
||||||
FORCE_ABIv2=false
|
FORCE_ABIv2=false
|
||||||
|
CONFIG="truffle.js"
|
||||||
|
|
||||||
truffle_setup https://github.com/erak/colonyNetwork.git develop_060
|
truffle_setup https://github.com/erak/colonyNetwork.git develop_060
|
||||||
run_install install_fn
|
run_install install_fn
|
||||||
|
|
||||||
CONFIG=$(find_truffle_config)
|
|
||||||
|
|
||||||
cd lib
|
cd lib
|
||||||
rm -Rf dappsys
|
rm -Rf dappsys
|
||||||
git clone https://github.com/erak/dappsys-monolithic.git -b master_060 dappsys
|
git clone https://github.com/erak/dappsys-monolithic.git -b master_060 dappsys
|
||||||
|
@ -202,6 +202,10 @@ function run_install
|
|||||||
{
|
{
|
||||||
local init_fn="$1"
|
local init_fn="$1"
|
||||||
printLog "Running install function..."
|
printLog "Running install function..."
|
||||||
|
|
||||||
|
replace_version_pragmas
|
||||||
|
force_solc "$CONFIG" "$DIR" "$SOLJSON"
|
||||||
|
|
||||||
$init_fn
|
$init_fn
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,7 +229,6 @@ function truffle_run_test
|
|||||||
local test_fn="$2"
|
local test_fn="$2"
|
||||||
|
|
||||||
replace_version_pragmas
|
replace_version_pragmas
|
||||||
|
|
||||||
force_solc "$CONFIG" "$DIR" "$SOLJSON"
|
force_solc "$CONFIG" "$DIR" "$SOLJSON"
|
||||||
|
|
||||||
printLog "Checking optimizer level..."
|
printLog "Checking optimizer level..."
|
||||||
|
@ -31,10 +31,11 @@ function test_fn { npm test; }
|
|||||||
function gnosis_safe_test
|
function gnosis_safe_test
|
||||||
{
|
{
|
||||||
OPTIMIZER_LEVEL=1
|
OPTIMIZER_LEVEL=1
|
||||||
|
CONFIG="truffle.js"
|
||||||
|
|
||||||
truffle_setup https://github.com/erak/safe-contracts.git development_060
|
truffle_setup https://github.com/erak/safe-contracts.git development_060
|
||||||
run_install install_fn
|
run_install install_fn
|
||||||
|
|
||||||
CONFIG=$(find_truffle_config)
|
|
||||||
replace_libsolc_call
|
replace_libsolc_call
|
||||||
|
|
||||||
truffle_run_test compile_fn test_fn
|
truffle_run_test compile_fn test_fn
|
||||||
|
@ -31,11 +31,11 @@ function test_fn { npm run test; }
|
|||||||
function zeppelin_test
|
function zeppelin_test
|
||||||
{
|
{
|
||||||
OPTIMIZER_LEVEL=1
|
OPTIMIZER_LEVEL=1
|
||||||
|
CONFIG="truffle-config.js"
|
||||||
|
|
||||||
truffle_setup https://github.com/erak/openzeppelin-contracts.git master_060
|
truffle_setup https://github.com/erak/openzeppelin-contracts.git master_060
|
||||||
run_install install_fn
|
run_install install_fn
|
||||||
|
|
||||||
CONFIG="truffle-config.js"
|
|
||||||
replace_libsolc_call
|
|
||||||
|
|
||||||
truffle_run_test compile_fn test_fn
|
truffle_run_test compile_fn test_fn
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user