Skip to content
Browse files

Add travis.ci for testing multiple puppet versions.

The existing spec tests should be tested on multiple puppet version. The
addition of travis.ci allows us to easily verify all specs are passing
and new manifests did not break backwards compatibility by introducing
new syntax.
  • Loading branch information...
1 parent b9e6a78 commit 33c72efde10692e1d3d6aaaead9e6ed9364ffdac @nanliu nanliu committed Mar 16, 2012
Showing with 35 additions and 0 deletions.
  1. +22 −0 .travis.yml
  2. +13 −0 Gemfile
View
22 .travis.yml
@@ -0,0 +1,22 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - ree
+before_script:
+ - "[ '2.6.12' = $PUPPET_VERSION ] && git clone git://github.com/puppetlabs/puppetlabs-create_resources.git spec/fixtures/modules/create_resources"
+after_script:
+script: "rake spec"
+branches:
+ only:
+ - tb/travis
+env:
+ - PUPPET_VERSION=2.6.12
+ - PUPPET_VERSION=2.7.6
+ - PUPPET_VERSION=2.7.9
+matrix:
+ exclude:
+ - rvm: 1.9.2
+ env: PUPPET_VERSION=2.6.12
+notifications:
+ email: false
View
13 Gemfile
@@ -0,0 +1,13 @@
+source :rubygems
+
+puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
+
+gem 'puppet', puppetversion
+gem 'hiera', '>= 0.3.0'
+gem 'hiera-puppet', '>= 0.3.0'
+
+group :test do
+ gem 'rake', '>= 0.9.0'
+ gem 'rspec', '>= 2.8.0'
+ gem 'rspec-puppet', '>= 0.1.1'
+end

0 comments on commit 33c72ef

Please sign in to comment.
Something went wrong with that request. Please try again.