mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 12:11:16 +00:00
move always deploy on tests to deploy tracker
This commit is contained in:
parent
8f5b47adf4
commit
c52142cb4c
@ -140,10 +140,6 @@ class ContractDeployer {
|
||||
return next();
|
||||
}
|
||||
|
||||
// TODO find a better way to do that
|
||||
if (process.env.isTest) {
|
||||
return self.deployContract(contract, next);
|
||||
}
|
||||
self.plugins.emitAndRunActionsForEvent('deploy:contract:shouldDeploy', {contract: contract, shouldDeploy: true}, function(_err, params) {
|
||||
let trackedContract = params.contract;
|
||||
if (!params.shouldDeploy) {
|
||||
|
@ -26,6 +26,10 @@ class DeployTracker {
|
||||
});
|
||||
|
||||
self.embark.registerActionForEvent("deploy:contract:shouldDeploy", (params, cb) => {
|
||||
if (process.env.isTest) {
|
||||
return cb(params);
|
||||
}
|
||||
|
||||
let contract = params.contract;
|
||||
let trackedContract = self.getContract(contract.className, contract.realRuntimeBytecode, contract.realArgs);
|
||||
if (trackedContract) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user