diff options
-rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b5bee8..70ca8e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: leapcode/ruby:2.1-slim stages: - build + - test - trigger build: @@ -10,7 +11,7 @@ build: - rake build #- sudo rake install #- ./bin/leap - - gem install --user-install pkg/leap_cli-*.gem + - "gem install --user-install pkg/leap_cli-*.gem" - export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" - leap artifacts: @@ -19,9 +20,17 @@ build: name: "leap_cli_${CI_BUILD_REF_NAME}_${CI_BUILD_REF}" expire_in: 3 month +test: + stage: test + script: + - "gem install --user-install pkg/leap_cli-*.gem" + - export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" + - leap + - rake test + # trigger leap_platform pipeline trigger: stage: trigger type: deploy script: - - curl -s -X POST -F token=${PLATFORM_TRIGGER_TOKEN} -F ref=develop 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" |