PageRenderTime 47ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/Rakefile

https://bitbucket.org/sqctest02/stash-command-line-tools
Rakefile | 54 lines | 44 code | 7 blank | 3 comment | 2 complexity | 69c401a78bda1ba2acf1bee8aa65ad0f MD5 | raw file
  1. # encoding: utf-8
  2. require 'rubygems'
  3. require 'bundler'
  4. begin
  5. Bundler.setup(:default, :development)
  6. rescue Bundler::BundlerError => e
  7. $stderr.puts e.message
  8. $stderr.puts "Run `bundle install` to install missing gems"
  9. exit e.status_code
  10. end
  11. require 'rake'
  12. require 'jeweler'
  13. Jeweler::Tasks.new do |gem|
  14. # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
  15. gem.name = "atlassian-stash"
  16. gem.homepage = "https://bitbucket.org/atlassian/stash-command-line-tools"
  17. gem.license = "MIT"
  18. gem.summary = "Command line tools for Atlassian Stash"
  19. gem.description = "Provides convenient functions for interacting with Atlassian Stash through the command line"
  20. gem.email = "sruiz@atlassian.com"
  21. gem.authors = ["Seb Ruiz"]
  22. # dependencies defined in Gemfile
  23. gem.executables = ["stash"]
  24. end
  25. Jeweler::RubygemsDotOrgTasks.new
  26. require 'rake/testtask'
  27. Rake::TestTask.new(:test) do |test|
  28. test.libs << 'lib' << 'test'
  29. test.pattern = 'test/**/test_*.rb'
  30. test.verbose = true
  31. end
  32. require 'rcov/rcovtask'
  33. Rcov::RcovTask.new do |test|
  34. test.libs << 'test'
  35. test.pattern = 'test/**/test_*.rb'
  36. test.verbose = true
  37. test.rcov_opts << '--exclude "gems/*"'
  38. end
  39. task :default => :test
  40. require 'rdoc/task'
  41. Rake::RDocTask.new do |rdoc|
  42. version = File.exist?('VERSION') ? File.read('VERSION') : ""
  43. rdoc.rdoc_dir = 'rdoc'
  44. rdoc.title = "atlassian-stash #{version}"
  45. rdoc.rdoc_files.include('README*')
  46. rdoc.rdoc_files.include('lib/**/*.rb')
  47. end