forked from arangamani/jenkins_api_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (38 loc) · 1.69 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'jenkins_api_client/version'
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = 'jenkins_api_client'
gemspec.version = JenkinsApi::Client::VERSION
gemspec.platform = Gem::Platform::RUBY
gemspec.date = Time.now.utc.strftime("%Y-%m-%d")
gemspec.require_paths = ["lib"]
gemspec.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
gemspec.files = `git ls-files`.split("\n")
gemspec.extra_rdoc_files = ['CHANGELOG.rdoc', 'LICENSE', 'README.rdoc']
gemspec.authors = [ 'Kannan Manickam' ]
gemspec.email = [ 'arangamani.kannan@gmail.com' ]
gemspec.homepage = 'https://github.com/arangamani/jenkins_api_client'
gemspec.summary = 'Jenkins JSON API Client'
gemspec.description = %{
This is a simple and easy-to-use Jenkins Api client with features focused on
automating Job configuration programaticaly and so forth}
gemspec.test_files = `git ls-files -- {spec}/*`.split("\n")
gemspec.rubygems_version = '1.8.17'
end
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:unit_tests) do |spec|
spec.pattern = FileList['spec/unit_tests/*_spec.rb']
spec.rspec_opts = ['--color', '--format documentation']
end
RSpec::Core::RakeTask.new(:func_tests) do |spec|
spec.pattern = FileList['spec/func_tests/*_spec.rb']
spec.rspec_opts = ['--color', '--format documentation']
end
RSpec::Core::RakeTask.new(:test) do |spec|
spec.pattern = FileList['spec/*/*.rb']
spec.rspec_opts = ['--color', '--format documentation']
end