File INSTALL.md changed (mode: 100644) (index 675d9ce..5be2d66) |
... |
... |
build. When script is run: |
32 |
32 |
|
|
33 |
33 |
* `$FRAGILE_REPO` environment variable points to location of checked out |
* `$FRAGILE_REPO` environment variable points to location of checked out |
34 |
34 |
repository; |
repository; |
|
35 |
|
* `$FRAGILE_REF` environment variable is set to the name of reference of VCS; |
35 |
36 |
* current directory is build directory. |
* current directory is build directory. |
36 |
37 |
|
|
37 |
38 |
Use dummy builders from `builders/` directory during setup to check |
Use dummy builders from `builders/` directory during setup to check |
File daemon.php changed (mode: 100644) (index c359e70..7fbe0de) |
14 |
14 |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 |
15 |
|
|
16 |
16 |
require_once __DIR__ . '/classes/Builds.php'; |
require_once __DIR__ . '/classes/Builds.php'; |
|
17 |
|
require_once __DIR__ . '/classes/Buildset.php'; |
17 |
18 |
require_once __DIR__ . '/config.php'; |
require_once __DIR__ . '/config.php'; |
18 |
19 |
|
|
19 |
20 |
// TODO: maybe mark all "running" builds as failed |
// TODO: maybe mark all "running" builds as failed |
|
... |
... |
function runBuilds($builds) |
85 |
86 |
// TODO: sort $builds according to $build->$buildset and then by |
// TODO: sort $builds according to $build->$buildset and then by |
86 |
87 |
// $build->buildername same way as it's done for the dashboard |
// $build->buildername same way as it's done for the dashboard |
87 |
88 |
foreach ($builds as $build) { |
foreach ($builds as $build) { |
|
89 |
|
$buildset = Buildset::get($build->buildset); |
|
90 |
|
|
|
91 |
|
if (!putenv('FRAGILE_REF=' . $buildset->name)) { |
|
92 |
|
die("Failed to set FRAGILE_REF environment variable\n"); |
|
93 |
|
} |
|
94 |
|
|
88 |
95 |
// checkout revision |
// checkout revision |
89 |
96 |
system(__DIR__ . "/vcs/checkout '" . $build->revision . "'", $retval); |
system(__DIR__ . "/vcs/checkout '" . $build->revision . "'", $retval); |
90 |
97 |
if ($retval != 0) { |
if ($retval != 0) { |