-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
63 lines (55 loc) · 1.35 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
---
stages:
- syntax
- unit
cache:
paths:
- vendor/bundle
before_script:
- apt-get update -y && apt-get -qq -o=dpkg::use-pty=0 install ruby bundler
- bundle -v
- rm Gemfile.lock || true
- gem --version
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
lint validate syntax metadata_lint-Debian jessie-Puppet ~> 4.8:
stage: syntax
image: debian:jessie
script:
- bundle exec rake lint validate syntax metadata_lint
variables:
PUPPET_GEM_VERSION: '~> 4.8'
rubocop-Debian jessie-Puppet ~> 4.8:
stage: syntax
image: debian:jessie
script:
- bundle exec rake rubocop
variables:
PUPPET_GEM_VERSION: '~> 4.8'
spec-Debian jessie-Puppet ~> 4.8:
stage: unit
image: debian:jessie
script:
- bundle exec rake spec
variables:
PUPPET_GEM_VERSION: '~> 4.8'
syntax lint metadata_lint validate-Debian stretch-Puppet ~> 4.8:
stage: syntax
image: debian:stretch
script:
- bundle exec rake syntax lint metadata_lint validate
variables:
PUPPET_GEM_VERSION: '~> 4.8'
rubocop-Debian stretch-Puppet ~> 4.8:
stage: syntax
image: debian:stretch
script:
- bundle exec rake rubocop
variables:
PUPPET_GEM_VERSION: '~> 4.8'
spec-Debian stretch-Puppet ~> 4.8:
stage: unit
image: debian:stretch
script:
- bundle exec rake spec
variables:
PUPPET_GEM_VERSION: '~> 4.8'