From 1ab67f4257fa7dfe4e27b02643db860a96487a98 Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 24 Jun 2016 12:48:16 +0200 Subject: Added .gitlab-ci.yml - build a gem and upload it as artefact to 0xacab - trigger platform pipeline --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml 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" -- cgit v1.2.3