summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-24 12:48:16 +0200
committervarac <varacanero@zeromail.org>2016-06-27 11:24:06 +0200
commit1ab67f4257fa7dfe4e27b02643db860a96487a98 (patch)
treee279bc5dcf99c2f0608fa6f0590d458e5e17a09e
parent0a054b1d07aebbeff37a4f84766833ff55ad001c (diff)
Added .gitlab-ci.yml
- build a gem and upload it as artefact to 0xacab - trigger platform pipeline
-rw-r--r--.gitlab-ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..3404346
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+before_script:
+ - ruby -v
+
+image: ruby:2.1
+
+stages:
+ - syntax
+ - build
+
+build:
+ stage: build
+ script:
+ - rake build
+ artifacts:
+ paths:
+ - pkg/leap_cli-1.9.gem
+
+# trigger leap_platform pipeline using same REF
+# as it is used for this project
+# (i.e. a push to leap_cli:develop will trigger
+# a leap_platform:develop build)
+trigger:
+ type: deploy
+ script:
+ - "curl -X POST -F token=$PLATFORM_TRIGGER_TOKEN -F ref=$CI_BUILD_REF_NAME https://0xacab.org/api/v3/projects/129/trigger/builds"