-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (39 loc) · 1.37 KB
/
.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
37
38
39
40
41
42
43
image: scalecommerce/xenial:1.11
stages:
- Puppet 5
- Puppet 6
- push2github
16.04:puppet-nginx:puppet5:
stage: Puppet 5
image: scalecommerce/xenial:1.11
script:
- ./test/install-puppet5.sh
- ./test/install.sh
- export PATH=/opt/puppetlabs/bin:$PATH
- puppet module install puppet-nginx
- mv ./test/hiera/module.yaml.puppet-nginx ./test/hiera/module.yaml
- puppet apply -v test/site.pp
- inspec exec test/inspec/sc_nginx.rb
- mv ./test/hiera/override.yaml.puppet-nginx ./test/hiera/override.yaml
- puppet apply -v test/site.pp
- inspec exec test/inspec/sc_nginx.rb
- inspec exec test/inspec/sc_nginx_override.rb
16.04:puppet-nginx:puppet6:
stage: Puppet 6
image: scalecommerce/xenial:1.11
script:
- ./test/install-puppet6.sh
- ./test/install.sh
- export PATH=/opt/puppetlabs/bin:$PATH
- puppet module install puppet-nginx
- mv ./test/hiera/module.yaml.puppet-nginx ./test/hiera/module.yaml
- puppet apply -v test/site.pp
- inspec exec test/inspec/sc_nginx.rb
- mv ./test/hiera/override.yaml.puppet-nginx ./test/hiera/override.yaml
- puppet apply -v test/site.pp
- inspec exec test/inspec/sc_nginx.rb
- inspec exec test/inspec/sc_nginx_override.rb
push2github:
stage: push2github
script:
- git push --quiet --mirror https://[email protected]/ScaleCommerce/puppet-sc_nginx.git