diff options
author | Micah Anderson <micah@riseup.net> | 2016-09-13 15:52:52 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2016-09-13 15:52:52 -0400 |
commit | 79330af765392972b31273a0d5e34e9b63176bec (patch) | |
tree | 3f731384fa3d5799913594f0b8e1778aad6109cb | |
parent | 5e266e1f9d22fbb78612a896f47a19be5106aee1 (diff) |
add a gitlab CI stage for running tests
-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" |