Init puppet system stuff
[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/init-system
20     - spec/octocatalog/run-octocatalog base test
21
22 test-octocatalog/master:
23   <<: *test-octocatalog
24
25   except:
26     - master
27
28   variables:
29     REF_BASE: origin/master
30     R10K: |
31       cachedir: 'cache'
32       sources:
33         plain:
34           remote: '$CI_PROJECT_DIR'
35           basedir: 'environments'