Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
nanliu committed Mar 18, 2012
1 parent b9e6a78 commit 33c72ef
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .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
13 changes: 13 additions & 0 deletions 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.