From 417d17dded1cfade4023c3e1138159db901614af Mon Sep 17 00:00:00 2001 From: brandonrdn Date: Fri, 19 May 2017 16:10:07 -0400 Subject: [PATCH] (SIMP-3179) add gitlabci to simp module SIMP-3179 #comment closed --- .gitlab-ci.yml | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..64299998d --- /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