Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 53 lines (43 sloc) 1.368 kb
5979a58 @adamhjk Initial commit to chef-jenkins.
authored
1 # encoding: utf-8
2
3 require 'rubygems'
4 require 'bundler'
5 begin
6 Bundler.setup(:default, :development)
7 rescue Bundler::BundlerError => e
8 $stderr.puts e.message
9 $stderr.puts "Run `bundle install` to install missing gems"
10 exit e.status_code
11 end
12 require 'rake'
13
14 require 'jeweler'
15 Jeweler::Tasks.new do |gem|
16 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17 gem.name = "chef-jenkins"
18 gem.homepage = "http://github.com/adamhjk/chef-jenkins"
19 gem.license = "MIT"
20 gem.summary = %Q{Chef+Jenkins}
21 gem.description = %Q{Keep your chef server in sync with jenkins}
22 gem.email = "adam@opscode.com"
23 gem.authors = ["Adam Jacob"]
24 # dependencies defined in Gemfile
25 end
26 Jeweler::RubygemsDotOrgTasks.new
27
28 require 'rspec/core'
29 require 'rspec/core/rake_task'
eca356f @adamhjk lets try some grit
authored
30 RSpec::Core::RakeTask.new(:spec => [ 'ci:setup:rspec' ]) do |spec|
5979a58 @adamhjk Initial commit to chef-jenkins.
authored
31 spec.pattern = FileList['spec/**/*_spec.rb']
32 end
33
eca356f @adamhjk lets try some grit
authored
34 RSpec::Core::RakeTask.new(:rcov => [ 'ci:setup:rspec' ]) do |spec|
5979a58 @adamhjk Initial commit to chef-jenkins.
authored
35 spec.pattern = 'spec/**/*_spec.rb'
36 spec.rcov = true
37 end
38
39 task :default => :spec
40
eca356f @adamhjk lets try some grit
authored
41 require 'ci/reporter/rake/rspec'
42
43 require 'rdoc/task'
44 RDoc::Task.new do |rdoc|
5979a58 @adamhjk Initial commit to chef-jenkins.
authored
45 version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
47 rdoc.rdoc_dir = 'rdoc'
48 rdoc.title = "chef-jenkins #{version}"
49 rdoc.rdoc_files.include('README*')
50 rdoc.rdoc_files.include('lib/**/*.rb')
51 end
eca356f @adamhjk lets try some grit
authored
52
Something went wrong with that request. Please try again.