Browse files

(maint) Add Travis CI Support

This patch enables Travis CI support using the travis configuration.
Email notifications are turned off to reduce inbox clutter.

This patch should coincide with enabling Travis CI support for pull requests.
A build status image is also included in the project README.
  • Loading branch information...
1 parent efdbc60 commit b2623d9a7e69321a38cd0d91cc275faa48487f14 @jeffmccune jeffmccune committed Jan 5, 2013
Showing with 41 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +12 −0 .travis.yml
  3. +18 −0 Gemfile
  4. +2 −0 README.md
  5. +6 −1 Rakefile
View
3 .gitignore
@@ -1,3 +1,6 @@
pkg
test.rb
ext/packaging
+Gemfile.lock
+.bundle/
+vendor/
View
12 .travis.yml
@@ -0,0 +1,12 @@
+language: ruby
+bundler_args: --without development
+script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
+notifications:
+ email: false
+rvm:
+ - 1.9.3
+ - 1.8.7
+ - ruby-head
+matrix:
+ allow_failures:
+ - rvm: ruby-head
View
18 Gemfile
@@ -0,0 +1,18 @@
+source :rubygems
+
+group :development do
+ gem 'watchr'
+end
+
+group :development, :test do
+ gem 'rake'
+ gem 'rspec', "~> 2.11.0", :require => false
+ gem 'mocha', "~> 0.10.5", :require => false
+ gem 'json', "~> 1.7", :require => false
+end
+
+if File.exists? "#{__FILE__}.local"
+ eval(File.read("#{__FILE__}.local"), binding)
+end
+
+# vim:ft=ruby
View
2 README.md
@@ -1,5 +1,7 @@
# Hiera
+[![Build Status](https://travis-ci.org/puppetlabs/hiera.png?branch=master)](https://travis-ci.org/puppetlabs/hiera)
+
A simple pluggable Hierarchical Database.
-
View
7 Rakefile
@@ -41,8 +41,13 @@ end
if defined?(RSpec::Core::RakeTask)
desc "Run all specs"
- RSpec::Core::RakeTask.new(:test) do |t|
+ RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
end
end
+task :test => :spec
+
+task :default do
+ sh 'rake -T'
+end

0 comments on commit b2623d9

Please sign in to comment.