Permalink
Browse files

Setup for Travis CI

  • Loading branch information...
1 parent 4c780b2 commit db898e20694c8372418986a4705662fdea4eb272 @raphink raphink committed Jul 18, 2012
Showing with 38 additions and 0 deletions.
  1. +21 −0 .travis.yml
  2. +15 −0 Gemfile
  3. +2 −0 Rakefile
View
@@ -0,0 +1,21 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.3
+notifications:
+ email:
+ - raphael.pinson@camptocamp.com
+env:
+# 0.25 cannot pass rspec tests
+# - PUPPET_VERSION=0.25.5
+# 0.26 did not support comment for the host type
+# - PUPPET_VERSION=2.6.17
+ - PUPPET_VERSION=2.7.18
+install:
+ # Use latest Augeas
+ - sudo add-apt-repository -y ppa:raphink/augeas
+ - sudo apt-get update
+ - sudo apt-get install libaugeas-dev libxml2-dev
+ - sudo touch /etc/aliases
+ - gem install bundler
+ - bundle update
View
@@ -0,0 +1,15 @@
+source :rubygems
+
+if ENV.key?('PUPPET_VERSION')
+ puppetversion = "= #{ENV['PUPPET_VERSION']}"
+else
+ puppetversion = ['>= 2.7']
+end
+
+gem 'rake'
+gem 'puppet-lint'
+gem 'rspec-puppet'
+gem 'ruby-augeas'
+gem 'puppet', puppetversion
+gem 'puppetlabs_spec_helper'
+gem 'simplecov'
View
@@ -1,2 +1,4 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
+
+task :default => [:spec, :lint]

0 comments on commit db898e2

Please sign in to comment.