-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
36 lines (28 loc) · 937 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.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 "[email protected]"
- 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/init-system
- spec/octocatalog/init-env 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'