diff options
author | elijah <elijah@riseup.net> | 2016-10-05 14:35:56 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-10-05 14:35:56 -0700 |
commit | 7abfbd6abae14fa6a72350f7b75268ff561354ee (patch) | |
tree | af5c969c905a8d2a95f2b2aa7c4dd6f4b8763126 /.gitlab-ci.yml | |
parent | cc57bc6c0ff99d88f3bfeff1b04297e9b91e6988 (diff) | |
parent | f95e08ef7d8defbde4a19e138b1ac4ebc9677669 (diff) |
Merge branch 'develop'
# Conflicts:
# lib/leap_cli/version.rb
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5aca7d3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,38 @@ +image: leapcode/ruby:2.1-slim + +stages: + - build + - test + - trigger + +build: + stage: build + script: + - "rake build" + - "gem install --user-install pkg/leap_cli-*.gem" + - export PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin" + - leap + artifacts: + paths: + - pkg/leap_cli-*.gem + name: "leap_cli_${CI_BUILD_REF_NAME}_${CI_BUILD_REF}" + expire_in: 3 month + +test: + stage: test + script: +# - apt-get install --yes pkg-config +# - bundle config build.nokogiri --use-system-libraries + - apt-get install rake + - bundle install --path vendor/bundle --with test + - git clone https://leap.se/git/leap_platform.git -b develop + - chmod -R a+rwX test/provider + - useradd -ms /bin/bash testuser + - su -c "PLATFORM_DIR=$(readlink -e leap_platform) bundle exec rake test" testuser + +# 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" |