Add octocatalog-diff job
[mirror/dsa-puppet.git] / .gitlab-ci.yml
1 .test-octocatalog: &test-octocatalog
2   image: ruby:2.3
3
4   script:
5     - unset BUNDLER_VERSION BUNDLE_APP_CONFIG BUNDLE_BIN BUNDLE_PATH GEM_HOME
6
7     - git config --global user.name "Your Name"
8     - git config --global user.email "you@example.com"
9
10     - apt-get update
11     - apt-get install -y cmake libldap-dev libsasl2-dev
12     - bundle install --binstubs bin --with octocatalog
13
14     - git branch -f base $REF_BASE
15     - git branch -f test $CI_BUILD_REF
16
17     - echo -n "$R10K" > r10k.yaml
18     - bundle exec r10k deploy environment --verbose debug base test
19     - spec/octocatalog/run-octocatalog base test
20
21 test-octocatalog/master:
22   <<: *test-octocatalog
23
24   except:
25     - master
26
27   variables:
28     REF_BASE: origin/master
29     R10K: |
30       cachedir: 'cache'
31       sources:
32         plain:
33           remote: '$CI_PROJECT_DIR'
34           basedir: 'environments'