diff options
author | kwadronaut <kwadronaut@leap.se> | 2018-11-07 15:43:41 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2018-11-07 15:43:41 +0100 |
commit | e598088c2f9263e7682e399b65376d7a2c529ded (patch) | |
tree | aa628edf0ad55dc2adea8bc6f96bf516aaba0a30 /.gitlab-ci.yml | |
parent | d30831f7214da266ad943cf4013f0632e8b15d48 (diff) | |
parent | 77070c6bf97ecd6fc860cae6120dca86fa910e5a (diff) |
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 611058c..268210d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,39 +1,21 @@ -image: ruby:2.1 -before_script: - - bundle install --jobs $(nproc) --without system_tests --path=/var/cache/gitlab-runner/ "${FLAGS[@]}" +image: ruby:2.3 -.job_template: &job_definition +# Test job template +.test_template: &test_definition + stage: test script: - # don't fail on lint warnings - - bundle exec rake lint || /bin/true - - bundle exec rake syntax - - bundle exec rake validate + - bundle install --jobs $(nproc) --without docs --path vendor + - bundle exec rake tests - 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 with version present on Debian stable test:puppet48: variables: PUPPET_VERSION: "~> 4.8.2" FACTER_VERSION: '~> 2.4.6' - <<: *job_definition + HIERA_VERSION: '~> 3.2.0' + <<: *test_definition -# Latest greatest -test:puppet4x: - variables: - PUPPET_VERSION: "> 4" - FACTER_VERSION: '> 2' - <<: *job_definition +# Test with latest Puppet release +test:puppetlatest: + <<: *test_definition |