summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-27 11:33:38 +0200
committervarac <varacanero@zeromail.org>2016-06-27 14:13:07 +0200
commite46c4c64128621c2e84233e27b63040c027be88f (patch)
tree11117370a7b800e15907dd836d1d13b1fb367b4b
parent1ab67f4257fa7dfe4e27b02643db860a96487a98 (diff)
[wip] testing .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml20
1 files changed, 9 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3404346..2cd09eb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,25 +1,23 @@
-before_script:
- - ruby -v
-
image: ruby:2.1
stages:
- syntax
- build
+ - trigger
build:
stage: build
script:
- rake build
- artifacts:
- paths:
- - pkg/leap_cli-1.9.gem
+ # disable artefact upload until it's fixed
+ # see https://leap.se/code/issues/8221
+ #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 leap_platform pipeline
trigger:
+ stage: 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"
+ - curl -s -X POST -F token=${PLATFORM_TRIGGER_TOKEN} -F ref=develop https://0xacab.org/api/v3/projects/129/trigger/builds