-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e7d5cf
commit 2c4c9ef
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* This mod adds a CIUinit/PHPUnit base install to the CI installation | ||
* | ||
*/ | ||
|
||
// Get the latest CI | ||
echo "Fetching latest CIUnit from github.com/eriktorsner/ciunit....\n"; | ||
$cmd = "curl -sL https://github.com/eriktorsner/ciunit/archive/master.zip > ciunit.zip"; | ||
exec($cmd); | ||
|
||
// unzip it | ||
echo "Unzipping...\n"; | ||
$cmd = "unzip ciunit.zip"; | ||
exec($cmd); | ||
|
||
// move files and folders into the CI install | ||
$cmd = "mv ciunit-master/application/config/testing/ $ci_folder/application/config/"; | ||
exec($cmd); | ||
$cmd = "mv ciunit-master/application/third_party/CIUnit/ $ci_folder/application/third_party/"; | ||
exec($cmd); | ||
$cmd = "mv ciunit-master/tests/ $ci_folder/"; | ||
exec($cmd); | ||
$cmd = "rm -rf ciunit-master/"; | ||
exec($cmd); | ||
|
||
// Remove archive | ||
echo "Cleaning up download\n"; | ||
$cmd = "rm -rf ci.zip"; | ||
exec($cmd); |