X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=.gitlab-ci.yml;fp=.gitlab-ci.yml;h=568ea635f4d3d557de39d53043ec821b7db9709f;hb=6b91b43821b532ef0e24c4645d18e91d5d249ea0;hp=0000000000000000000000000000000000000000;hpb=e41ff10108e9504ea508a311219840777572efdb;p=mirror%2Fdsa-puppet.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..568ea635f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +.test-octocatalog: &test-octocatalog + image: ruby:2.3 + + script: + - unset BUNDLER_VERSION BUNDLE_APP_CONFIG BUNDLE_BIN BUNDLE_PATH GEM_HOME + + - git config --global user.name "Your Name" + - git config --global user.email "you@example.com" + + - apt-get update + - apt-get install -y cmake libldap-dev libsasl2-dev + - bundle install --binstubs bin --with octocatalog + + - git branch -f base $REF_BASE + - git branch -f test $CI_BUILD_REF + + - echo -n "$R10K" > r10k.yaml + - bundle exec r10k deploy environment --verbose debug base test + - spec/octocatalog/run-octocatalog base test + +test-octocatalog/master: + <<: *test-octocatalog + + except: + - master + + variables: + REF_BASE: origin/master + R10K: | + cachedir: 'cache' + sources: + plain: + remote: '$CI_PROJECT_DIR' + basedir: 'environments'