mirror-bytemark no longer a fastly backend for /debian/
[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     - echo -n "$FILE_R10K" > r10k.yaml
15     - git branch -f $ENV_BASE origin/$ENV_BASE
16     - git branch -f $ENV_TEST $CI_BUILD_REF
17     - bundle exec r10k deploy environment --puppetfile --verbose debug $ENV_BASE $ENV_TEST
18     - spec/octocatalog/init-system
19     - spec/octocatalog/init-env
20     - spec/octocatalog/run-octocatalog
21
22 test-octocatalog/master:
23   <<: *test-octocatalog
24
25   except:
26     - master
27
28   variables:
29     ENV_BASE: master
30     ENV_TEST: test_octocatalog
31     FILE_R10K: |
32       cachedir: 'cache'
33       sources:
34         plain:
35           remote: '$CI_PROJECT_DIR'
36           basedir: 'environments'