-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
64 lines (56 loc) · 1.57 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
- smoke
cache:
paths:
- vendor/bundle
variables:
RIEMANN_VERSION: 0.3.0
before_script:
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop-Ruby 2.5.3-Puppet ~> 5:
stage: syntax
image: ruby:2.5.3
script:
- bundle exec rake syntax lint validate metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
variables:
PUPPET_GEM_VERSION: '~> 6'
smoke riemann puppet 5:
stage: smoke
image: ruby:2.5.3
variables:
PUPPET_GEM_VERSION: '~> 5'
script:
- apt update
- apt install openjdk-8-jre-headless -y
- wget -nv -O riemann.deb https://github.com/riemann/riemann/releases/download/${RIEMANN_VERSION}/riemann_${RIEMANN_VERSION}_all.deb
- dpkg -i riemann.deb
- bundle install --without system_tests --path vendor/bundle --jobs $(nproc)
- bundle update puppet
- bundle exec puppet --version
- bundle exec pdk build
- bundle exec puppet module install pkg/*.tar.gz
- bundle exec ./smoke/test
parallel_spec-Ruby 2.5.3-Puppet ~> 6:
stage: unit
image: ruby:2.5.3
script:
- bundle exec rake spec
variables:
PUPPET_GEM_VERSION: '~> 6'
parallel_spec-Ruby 2.5.3-Puppet ~> 5:
stage: unit
image: ruby:2.5.3
script:
- bundle exec rake spec
variables:
PUPPET_GEM_VERSION: '~> 5'
parallel_spec-Ruby 2.4.5-Puppet ~> 4:
stage: unit
image: ruby:2.4.5
script:
- bundle exec rake spec
variables:
PUPPET_GEM_VERSION: '~> 4'