Fix file mode type in module_file
[puppet_common.git] / .gitlab-ci.yml
1 image: leapcode/ruby
2 before_script:
3   - "[ -d /var/cache/gitlab-runner ] || sudo mkdir /var/cache/gitlab-runner"
4   - sudo chown cirunner:cirunner -R /var/cache/gitlab-runner
5   - bundle install --jobs $(nproc) --without system_tests --path=/var/cache/gitlab-runner/ "${FLAGS[@]}"
6
7 .job_template: &job_definition
8   script:
9     # don't fail on lint warnings
10     - bundle exec rake lint || /bin/true
11     - bundle exec rake syntax
12     - bundle exec rake validate
13     - bundle exec rake spec
14
15 # Default debian jessie versions
16 test:puppet37:
17   variables:
18     PUPPET_VERSION: "~> 3.7.2"
19     FACTER_VERSION: '~> 2.2.0'
20   <<: *job_definition
21
22 test:puppet38_future_parser:
23   variables:
24     PUPPET_VERSION: '~> 3.8'
25     FACTER_VERSION: '~> 2.2.0'
26     FUTURE_PARSER:  'yes'
27   <<: *job_definition
28
29 test:puppet40:
30   variables:
31     PUPPET_VERSION: "~> 4.0.0"
32     FACTER_VERSION: '~> 2.4.0'
33   <<: *job_definition
34
35 # Default debia stretch versions
36 test:puppet45:
37   variables:
38     PUPPET_VERSION: "~> 4.5.2"
39     FACTER_VERSION: '~> 2.4.6'
40   <<: *job_definition
41
42 # Latest greatest
43 test:puppet4x:
44   variables:
45     PUPPET_VERSION: "> 4"
46     FACTER_VERSION: '> 2'
47   <<: *job_definition
48