diff options
author | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2018-02-02 19:22:51 +0000 |
---|---|---|
committer | Louis-Philippe VĂ©ronneau <pollito@riseup.net> | 2018-02-02 19:22:51 +0000 |
commit | 9d783e91beb5356d5a6e2573292690d5998becac (patch) | |
tree | 8cf3d84d96c1c75d002d5ee0bc9efa567fcb6344 /.gitlab-ci.yml | |
parent | 90cb24c6e0916b27eae744e5f6ecaa84a180517c (diff) | |
parent | d0b3003bd94aca6022823cb79c3eee5a84724623 (diff) |
Merge branch 'ci-update' into 'master'
Update the CI tests
See merge request shared-puppet-modules-group/tor!18
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 611058c..21907f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,39 +1,20 @@ -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 exec rake spec + - bundle install --jobs $(nproc) --without docs --path vendor + - bundle exec rake tests -# 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 |