Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-01-14 03:32:25 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-01-14 04:09:49 +0300
commit9b950638e9726e8a4be95e023830462d1a3a777d (patch)
tree1d3ecdd177cb86fc693258d3d4c6a8ae1d77df90
parent0d5745308da263d7553bef7ad577e8d06d99f2d2 (diff)
Add stages and publish jobvtest-4
-rw-r--r--.gitlab-ci.yml25
1 files changed, 24 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d373a31ae..46d7ec49c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,14 +1,23 @@
image: golang:1.7
+stages:
+ - test
+ - package
+ - publish
+
test:
+ stage: test
script:
- make
- make test
package:
+ stage: package
+ only:
+ - tags
script:
- apt-get update -qq
- - apt-get install -qq -y rubygems ruby2.1 bundler
+ - apt-get install -qq -y rubygems bundler
- GOOS=linux GOARCH=amd64 make clean package
- dpkg -e *.deb
- cat DEBIAN/control
@@ -17,3 +26,17 @@ package:
artifacts:
paths:
- ./*.deb
+
+publish:
+ stage: publish
+ only:
+ - tags
+ variables:
+ GIT_STRATEGY: none
+ script:
+ - apt-get update -qq
+ - apt-get install -y rubygems
+ - gem install package_cloud
+ - ls -lh *.deb
+ - shasum -a256 *.deb
+ - package_cloud push gitlab/unstable *.deb --url=https://packages.gitlab.com