This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
87 lines (75 loc) · 1.48 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
# https://docs.gitlab.com/ee/ci/docker/using_docker_build.html
stages:
- linter
- test
- puppet
# syntax
erb-lint:
stage: linter
image: vpgrp/linter:puppet
script:
- rails-erb-lint check --path=templates
json-lint:
stage: linter
image: vpgrp/linter:puppet
script:
- metadata-json-lint metadata.json
markdown-lint:
stage: linter
image: vpgrp/linter:markdown
script:
- mdl README.md
puppet-lint:
stage: linter
image: vpgrp/linter:puppet
script:
- puppet-lint --fail-on-warnings .
rubocop:
stage: linter
image: vpgrp/linter:ruby
script:
- rubocop .
yaml-lint:
stage: linter
image: vpgrp/linter:yaml
script:
- yaml-lint .gitlab-ci.yml
- yaml-lint .kitchen.yml
- yaml-lint .puppetforge.yml
# test
debian-8:
stage: test
image: vpgrp/kitchen
before_script:
- docker pull vpgrp/puppet:debian-8
script:
- kitchen test --destroy=always --color debian-debian-8
debian-9:
stage: test
image: vpgrp/kitchen
before_script:
- docker pull vpgrp/puppet:debian-9
script:
- kitchen test --destroy=always --color debian-debian-9
debian-10:
stage: test
image: vpgrp/kitchen
before_script:
- docker pull vpgrp/puppet:debian-10
script:
- kitchen test --destroy=always --color debian-debian-10
# puppet
create-module:
stage: puppet
image: vpgrp/puppet
script:
- puppet module build
publish-module:
stage: puppet
only:
- tags
image: vpgrp/puppet
script:
- rake module:push
# EOF