Add .gemfile and .travis.yml
authorHunter Haugen <h.haugen@gmail.com>
Tue, 20 Nov 2012 18:05:04 +0000 (10:05 -0800)
committerHunter Haugen <h.haugen@gmail.com>
Tue, 20 Nov 2012 18:05:04 +0000 (10:05 -0800)
.gemfile [new file with mode: 0644]
.travis.yml [new file with mode: 0644]

diff --git a/.gemfile b/.gemfile
new file mode 100644 (file)
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 (file)
index 0000000..fdbc95d
--- /dev/null
@@ -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