Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add download script to ease releases

Change-Id: I524109ad982ad81b30104bb63d8d9f1a32898faa
Reviewed-on: http://review.couchbase.org/16944
Reviewed-by: Jan Lehnardt <jan@couchbase.com>
Tested-by: Jan Lehnardt <jan@couchbase.com>
  • Loading branch information...
commit 47dc4b951aaaf7c9b9e17942407d5ca307cabe49 1 parent 23095b6
@janl janl authored Jan Lehnardt committed
Showing with 38 additions and 0 deletions.
  1. +38 −0 package/release-tool.php
View
38 package/release-tool.php
@@ -0,0 +1,38 @@
+#!/usr/bin/env php
+<?php
+
+$VERSIONS = array(
+ "1.1.0-dp2" => "php-ext-couchbase",
+ "1.0.4" => "php-ext-couchbase-1.0");
+$OSes = array("centos55", "centos62", "ubuntu1004", "ubuntu1110");
+$BITs = array("32" => "i686","64" => "x86_64");
+
+foreach($VERSIONS AS $VERSION => $BUILDER) {
+ foreach($OSes AS $OS) {
+ foreach($BITs AS $BIT => $LABEL) {
+ $filename = "php-ext-couchbase-$VERSION-$OS-$LABEL.tar.gz";
+ $url = "http://sdkbuilds.couchbase.com/job/$BUILDER/label=sdk_{$OS}_{$BIT}/ws/package/php-ext-couchbase.tar.gz";
+ $cmd = "curl -so '$filename' '$url'";
+ echo $cmd . "\n";
+ echo `$cmd`;
+ }
+ }
+}
+
+echo "\nUpload with s3cmd put --acl-public php-ext-couchbase-* s3://packages.couchbase.com.s3.amazonaws.com/clients/php/ \n";
+
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_centos55_32/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_centos55_64/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_centos62_32/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_centos62_64/ws/package/php-ext-couchbase.tar.gz
+//
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_ubuntu1004_32/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_ubuntu1004_64/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_ubuntu1110_32/ws/package/php-ext-couchbase.tar.gz
+// http://sdkbuilds.couchbase.com/job/php-ext-couchbase/label=sdk_ubuntu1110_64/ws/package/php-ext-couchbase.tar.gz
+//
+//
+// http://packages.couchbase.com.s3.amazonaws.com/clients/php/php-ext-couchbase-1.1.0-dp1-centos-i686.tar.gz
+// http://packages.couchbase.com.s3.amazonaws.com/clients/php/php-ext-couchbase-1.1.0-dp1-centos-x86_64.tar.gz
+// http://packages.couchbase.com.s3.amazonaws.com/clients/php/php-ext-couchbase-1.1.0-dp1-ubuntu-i686.tar.gz
+// http://packages.couchbase.com.s3.amazonaws.com/clients/php/php-ext-couchbase-1.1.0-dp1-ubuntu-x86_64.tar.gz
Please sign in to comment.
Something went wrong with that request. Please try again.