diff options
Diffstat (limited to 'src/qbuild/rr-build')
-rw-r--r-- | src/qbuild/rr-build | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/qbuild/rr-build b/src/qbuild/rr-build deleted file mode 100644 index 7918f4f8..00000000 --- a/src/qbuild/rr-build +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env php -<?php -/** - * Automatic roadrunner builds. - */ - -use Spiral\RoadRunner\QuickBuild\Builder; - -require_once "src/Builder.php"; - -// load build config -$version = $argv[1] ?? "1.3.1"; - -// load build config -$config = $argv[2] ?? __DIR__ . "/.build.json"; - -// Greeting! -Builder::cprintf( - "Building <green>RoadRunner</reset> specifically for you (version: <white>%s</reset>)...\n", - $version -); - -$builder = Builder::loadConfig($config); -if ($builder == null) { - Builder::cprintf("<red>Unable to load config:</reset> %s\n", $config); - return; -} - -$errors = $builder->configErrors(); -if (!empty($errors)) { - Builder::cprintf("<yellow>Found configuration errors:</reset>\n"); - foreach ($errors as $error) { - Builder::cprintf("- <red>%s</reset>\n", $error); - } - - return; -} - -// Start build -$builder->build(getcwd(), __DIR__ . '/main.go', 'rr', $version);
\ No newline at end of file |