diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6429999 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,97 @@ +# +--- +puppet-syntax: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - bundle install + - bundle exec rake syntax +puppet-lint: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - bundle install + - bundle exec rake lint +puppet-metadata: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - bundle install + - bundle exec rake metadata +unit-test-ruby-2.1: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - bundle install + - bundle exec rake spec +unit-test-ruby-2.2: + stage: test + tags: + - docker + image: ruby:2.2 + allow_failure: true + script: + - bundle install + - bundle exec rake spec +unit-test-ruby-2.3: + stage: test + tags: + - docker + image: ruby:2.3 + allow_failure: true + script: + - bundle install + - bundle exec rake spec + +# For PE LTS Support +# See: https://puppet.com/misc/puppet-enterprise-lifecycle +puppet4.7-syntax: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - PUPPET_VERSION=4.7 bundle install + - PUPPET_VERSION=4.7 bundle exec rake syntax +unit-test-puppet4.7-ruby-2.1: + stage: test + tags: + - docker + image: ruby:2.1 + script: + - PUPPET_VERSION=4.7 bundle install + - PUPPET_VERSION=4.7 bundle exec rake spec +unit-test-puppet4.7-ruby-2.2: + stage: test + tags: + - docker + image: ruby:2.2 + allow_failure: true + script: + - PUPPET_VERSION=4.7 bundle install + - PUPPET_VERSION=4.7 bundle exec rake spec +unit-test-puppet4.7-ruby-2.3: + stage: test + tags: + - docker + image: ruby:2.3 + allow_failure: true + script: + - PUPPET_VERSION=4.7 bundle install + - PUPPET_VERSION=4.7 bundle exec rake spec + +acceptance-test: + stage: test + tags: + - beaker + script: + - bundle install --no-binstubs --path=vendor + - bundle exec rake acceptance