Skip to content

Commit

Permalink
(maint) Add Travis CI Support
Browse files Browse the repository at this point in the history
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
Jeff McCune committed Jan 6, 2013
1 parent efdbc60 commit b2623d9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
pkg
test.rb
ext/packaging
Gemfile.lock
.bundle/
vendor/
12 changes: 12 additions & 0 deletions .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
18 changes: 18 additions & 0 deletions 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
2 changes: 2 additions & 0 deletions 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.

-
Expand Down
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -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.