Browse Source

deploy using shipit

Francois Chagnon 11 năm trước cách đây
mục cha
commit
dddca1cca2
1 tập tin đã thay đổi với 15 bổ sung0 xóa
  1. 15 0
      shipit.rubygems.yml

+ 15 - 0
shipit.rubygems.yml

@@ -0,0 +1,15 @@
+dependencies:
+  override:
+    - bundle install --path=./data/bundler
+
+deploy:
+  override:
+    - |
+      BUILD=`bundle exec rake build`
+      if [ $? != 0 ]; then
+        echo $BUILD;
+        exit 1;
+      fi
+      PKG=`echo $BUILD | cut -d" " -f5 | sed -e s/\.$//`;
+      VERSION=`echo $BUILD | cut -d" " -f2`;
+      gem push $PKG