Merge branch 'master' into HEAD
[puppet_apt.git] / .gitlab-ci.yml
1 image: ruby:2.1
2 before_script:
3   - bundle install --jobs $(nproc) --without system_tests --path=/var/cache/gitlab-runner/ "${FLAGS[@]}"
4
5 .job_template: &job_definition
6   script:
7     # don't fail on lint warnings
8     - bundle exec rake lint || /bin/true
9     - bundle exec rake syntax
10     - bundle exec rake validate
11     - bundle exec rake spec
12
13 # Default debian jessie versions
14 test:puppet37:
15   variables:
16     PUPPET_VERSION: "~> 3.7.2"
17     FACTER_VERSION: '~> 2.2.0'
18   <<: *job_definition
19
20 test:puppet38_future_parser:
21   variables:
22     PUPPET_VERSION: '~> 3.8'
23     FACTER_VERSION: '~> 2.2.0'
24     FUTURE_PARSER:  'yes'
25   <<: *job_definition
26
27 # Default debia stretch versions
28 test:puppet45:
29   variables:
30     PUPPET_VERSION: "~> 4.5.2"
31     FACTER_VERSION: '~> 2.4.6'
32   <<: *job_definition
33
34 # Latest greatest
35 test:puppet4x:
36   variables:
37     PUPPET_VERSION: "> 4"
38     FACTER_VERSION: '> 2'
39   <<: *job_definition