From fa0cfc361414f910cd467195fa608d7fc3831341 Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Mon, 20 May 2013 14:06:53 +0100 Subject: [PATCH] Make copy_build copy dot files, also fix comments in new build plugins. Closes #50. --- PHPCI/Plugin/CleanBuild.php | 3 ++- PHPCI/Plugin/CopyBuild.php | 4 ++-- PHPCI/Plugin/PackageBuild.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PHPCI/Plugin/CleanBuild.php b/PHPCI/Plugin/CleanBuild.php index e72048b4..a9709d8a 100644 --- a/PHPCI/Plugin/CleanBuild.php +++ b/PHPCI/Plugin/CleanBuild.php @@ -10,7 +10,8 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Clean build removes Composer related files and allows PHPCI users to clean up their build directory. +* Useful as a precursor to copy_build. * @author Dan Cryer * @package PHPCI * @subpackage Plugins diff --git a/PHPCI/Plugin/CopyBuild.php b/PHPCI/Plugin/CopyBuild.php index 0d7c8a9a..15a5d56a 100644 --- a/PHPCI/Plugin/CopyBuild.php +++ b/PHPCI/Plugin/CopyBuild.php @@ -10,7 +10,7 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Copy Build Plugin - Copies the entire build to another directory. * @author Dan Cryer * @package PHPCI * @subpackage Plugins @@ -39,7 +39,7 @@ class CopyBuild implements \PHPCI\Plugin return false; } - $cmd = 'mkdir -p "%s" && cp -Rf "%s"* "%s/"'; + $cmd = 'mkdir -p "%s" && ls -1a "%s"* | xargs -r -t "%s/"'; $success = $this->phpci->executeCommand($cmd, $this->directory, $build, $this->directory); if ($this->ignore) { diff --git a/PHPCI/Plugin/PackageBuild.php b/PHPCI/Plugin/PackageBuild.php index 6aa08581..333de105 100644 --- a/PHPCI/Plugin/PackageBuild.php +++ b/PHPCI/Plugin/PackageBuild.php @@ -10,7 +10,7 @@ namespace PHPCI\Plugin; /** -* Composer Plugin - Provides access to Composer functionality. +* Create a ZIP or TAR.GZ archive of the entire build. * @author Dan Cryer * @package PHPCI * @subpackage Plugins