summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2018-02-13 01:22:57 +0100
committermh <mh@immerda.ch>2018-02-13 01:22:57 +0100
commit24bd5ca46dc90c663f241933410d085fc1311fab (patch)
treef3498601b49fe453230c7a042edfd99b5c2f77f0 /.gitlab-ci.yml
parent1fcbe72115d57d53fced2777c8b54a4ee4ec17e9 (diff)
parent228ae4a53999dbc49fa7c4d2883468dde10f19fb (diff)
Merge remote-tracking branch 'shared/master'
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..268210d
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+image: ruby:2.3
+
+# Test job template
+.test_template: &test_definition
+ stage: test
+ script:
+ - bundle install --jobs $(nproc) --without docs --path vendor
+ - bundle exec rake tests
+ - bundle exec rake spec
+
+# Test with version present on Debian stable
+test:puppet48:
+ variables:
+ PUPPET_VERSION: "~> 4.8.2"
+ FACTER_VERSION: '~> 2.4.6'
+ HIERA_VERSION: '~> 3.2.0'
+ <<: *test_definition
+
+# Test with latest Puppet release
+test:puppetlatest:
+ <<: *test_definition