summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMicah <micah@riseup.net>2017-11-01 16:29:59 +0000
committerMicah <micah@riseup.net>2017-11-01 16:29:59 +0000
commitf6ca8789413829dc7a8cdb4ed5daf9ccdaddfd9f (patch)
tree4cc1d6c2f5a26a01c77c244579412fb360ebc7b8 /.gitlab-ci.yml
parente70337a9a5ac51715e54420f335e2358eee5638e (diff)
parent024e4d49d6a4afce4fa309c87c722763ac3ce706 (diff)
Merge branch 'add-ci' into 'master'
Add a CI infra See merge request shared-puppet-modules-group/tor!13
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..611058c
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,39 @@
+image: ruby:2.1
+before_script:
+ - bundle install --jobs $(nproc) --without system_tests --path=/var/cache/gitlab-runner/ "${FLAGS[@]}"
+
+.job_template: &job_definition
+ 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
+
+# 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:puppet48:
+ variables:
+ PUPPET_VERSION: "~> 4.8.2"
+ FACTER_VERSION: '~> 2.4.6'
+ <<: *job_definition
+
+# Latest greatest
+test:puppet4x:
+ variables:
+ PUPPET_VERSION: "> 4"
+ FACTER_VERSION: '> 2'
+ <<: *job_definition