summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 611058c9f55580ddfbb35ad37d62d466fee0fb01 (plain)
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
image: ruby:2.1
before_script:
  - bundle install --jobs $(nproc) --without system_tests --path=/var/cache/gitlab-runner/ "${FLAGS[@]}"

.job_template: &job_definition
  script:
    # don't fail on lint warnings
    - bundle exec rake lint || /bin/true
    - bundle exec rake syntax
    - bundle exec rake validate
    - bundle exec rake spec

# Default debian jessie versions
test:puppet37:
  variables:
    PUPPET_VERSION: "~> 3.7.2"
    FACTER_VERSION: '~> 2.2.0'
  <<: *job_definition

test:puppet38_future_parser:
  variables:
    PUPPET_VERSION: '~> 3.8'
    FACTER_VERSION: '~> 2.2.0'
    FUTURE_PARSER:  'yes'
  <<: *job_definition

# Default debian stretch versions
test:puppet48:
  variables:
    PUPPET_VERSION: "~> 4.8.2"
    FACTER_VERSION: '~> 2.4.6'
  <<: *job_definition

# Latest greatest
test:puppet4x:
  variables:
    PUPPET_VERSION: "> 4"
    FACTER_VERSION: '> 2'
  <<: *job_definition