Commit:    5834cb937697e81eefbcd95feef0dc13fcd69213
Author:    Anatol Belski <[email protected]>         Mon, 4 May 2015 09:26:48 +0200
Parents:   903b62c21d5d94e682431ae51c12d89b435f31c8
Branches:  master pecl_legacy

Link:       
http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=5834cb937697e81eefbcd95feef0dc13fcd69213

Log:
basic building with pickle

Changed paths:
  M  client/include/PickleBuildVC.php
  M  client/script/pickle.php


Diff:
diff --git a/client/include/PickleBuildVC.php b/client/include/PickleBuildVC.php
index 786d4be..b9968e3 100644
--- a/client/include/PickleBuildVC.php
+++ b/client/include/PickleBuildVC.php
@@ -87,7 +87,7 @@ class PickleBuildVC
                        $env['CPU'] = "AMD64";
                }
 
-               $this->sdk_path = 
$branch->config->getBuildFromName($build_name)[sdk_path];
+               $this->sdk_path = 
$branch->config->getBuildFromName($build_name)["sdk_path"];
                $env["PATH"] .= ";{$this->sdk_path}";
                
                $this->env = $env;
@@ -124,15 +124,23 @@ class PickleBuildVC
        public function build(PickleExt $ext)
        {
                $cmd = $this->pickle_cmd;
+               $old_cwd = getcwd();
 
-               $opts = "install --source --quiet ";
-               $opts .= $ext->getPkgUri() . " ";
-               $opts .= "--save-logs=" . $this->log_dir;
+               chdir(TMP_DIR);
+
+               /* XXX check if --quiet needed */
+               $opts = " --binary "
+                       . " --defaults " /* XXX if no force options was 
supplied, use --defaults. The logic is to implement. */
+                       . "--tmp-dir={$this->int_dir} "
+                       . "--save-logs=" . $this->log_dir . " "
+                       . "release "
+                       . $ext->getPkgUri();
 
                $cmd = $this->pickle_cmd . " " . $opts;
-echo $cmd;
+
                $ret = exec_single_log($cmd, NULL, $this->env);
-               var_dump($ret);
+
+               chdir($old_cwd);
        }
 
        public function archive()
diff --git a/client/script/pickle.php b/client/script/pickle.php
index 461f6b7..59e0836 100644
--- a/client/script/pickle.php
+++ b/client/script/pickle.php
@@ -34,9 +34,8 @@ foreach ($builds as $build_name) {
        $ext = new rm\PickleExt($pkg_path, $build);
 
        $build->build($ext);
-       die;
-       $build->packLogs();
-       $build->archive();
+       //$build->packLogs();
+       //$build->archive();
 
        /* upload logs and builds */
        /* notify packagist */


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to