Skip to content
Snippets Groups Projects
Commit 79330af7 authored by micah's avatar micah :speech_balloon:
Browse files

add a gitlab CI stage for running tests

parent 5e266e1f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment