summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Larizza <gary@puppetlabs.com>2012-11-20 10:17:03 -0800
committerGary Larizza <gary@puppetlabs.com>2012-11-20 10:17:03 -0800
commit24873ebc7cd7c997077e0c69e526c012c92c30ba (patch)
treef8dffbbdd02684e844744ef55b4ef558b293afe4
parent2c1d7c9c2547fcc420bfdcb7be1d3dcd8426deac (diff)
parented88c2de81960a497b66bd8317d6d643e0c36519 (diff)
Merge pull request #25 from hunner/travis
Add .gemfile and .travis.yml
-rw-r--r--.gemfile5
-rw-r--r--.travis.yml23
2 files changed, 28 insertions, 0 deletions
diff --git a/.gemfile b/.gemfile
new file mode 100644
index 0000000..9aad840
--- /dev/null
+++ b/.gemfile
@@ -0,0 +1,5 @@
+source :rubygems
+
+puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
+gem 'puppet', puppetversion
+gem 'puppetlabs_spec_helper', '>= 0.1.0'
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..fdbc95d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.3
+script: "rake spec"
+branches:
+ only:
+ - master
+env:
+ - PUPPET_VERSION=2.6.17
+ - PUPPET_VERSION=2.7.19
+ #- PUPPET_VERSION=3.0.1 # Breaks due to rodjek/rspec-puppet#58
+notifications:
+ email: false
+gemfile: .gemfile
+matrix:
+ exclude:
+ - rvm: 1.9.3
+ gemfile: .gemfile
+ env: PUPPET_VERSION=2.6.17
+ - rvm: 1.8.7
+ gemfile: .gemfile
+ env: PUPPET_VERSION=3.0.1