BLT-5222: [push:artifact] Add no-clone / no-commit #1909
Annotations
5 warnings
src/Command/Push/PushArtifactCommand.php#L110
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$destinationGitUrlsString = implode(',', $destinationGitUrls);
$refType = $this->input->getOption('destination-git-tag') ? 'tag' : 'branch';
$this->io->note(["Acquia CLI will:", "- git clone {$sourceGitBranch} from {$destinationGitUrls[0]}", "- Compile the contents of {$this->dir} into an artifact in a temporary directory", "- Copy the artifact files into the checked out copy of {$sourceGitBranch}", "- Commit changes and push the {$destinationGitRef} {$refType} to the following git remote(s):", " {$destinationGitUrlsString}"]);
- $this->checklist->addItem('Preparing artifact directory');
+
$this->cloneSourceBranch($outputCallback, $artifactDir, $destinationGitUrls[0], $sourceGitBranch);
$this->checklist->completePreviousItem();
}
|
src/Command/Push/PushArtifactCommand.php#L112
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->io->note(["Acquia CLI will:", "- git clone {$sourceGitBranch} from {$destinationGitUrls[0]}", "- Compile the contents of {$this->dir} into an artifact in a temporary directory", "- Copy the artifact files into the checked out copy of {$sourceGitBranch}", "- Commit changes and push the {$destinationGitRef} {$refType} to the following git remote(s):", " {$destinationGitUrlsString}"]);
$this->checklist->addItem('Preparing artifact directory');
$this->cloneSourceBranch($outputCallback, $artifactDir, $destinationGitUrls[0], $sourceGitBranch);
- $this->checklist->completePreviousItem();
+
}
$this->checklist->addItem('Generating build artifact');
$this->buildArtifact($outputCallback, $artifactDir);
|
src/Command/Push/PushArtifactCommand.php#L126
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$this->checklist->completePreviousItem();
}
if (!$input->getOption('no-commit')) {
- $this->checklist->addItem("Committing changes (commit hash: {$commitHash})");
+
$this->commit($outputCallback, $artifactDir, $commitHash);
$this->checklist->completePreviousItem();
}
|
src/Command/Push/PushArtifactCommand.php#L128
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$input->getOption('no-commit')) {
$this->checklist->addItem("Committing changes (commit hash: {$commitHash})");
$this->commit($outputCallback, $artifactDir, $commitHash);
- $this->checklist->completePreviousItem();
+
}
if (!$input->getOption('dry-run') && !$input->getOption('no-push')) {
if ($tagName = $input->getOption('destination-git-tag')) {
|
src/Command/Push/PushArtifactCommand.php#L146
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
$this->checklist->completePreviousItem();
} else {
- $this->logger->warning("The <options=bold>--dry-run</> (deprecated) or <options=bold>--no-push</> option prevented changes from being pushed to Acquia Cloud. The artifact has been built at <options=bold>{$artifactDir}</>");
+
}
return Command::SUCCESS;
}
|
The logs for this run have expired and are no longer available.
Loading