Rakefile in gooddata-0.6.19 vs Rakefile in gooddata-0.6.20
- old
+ new
@@ -3,11 +3,11 @@
require 'rubygems'
require 'bundler/setup'
require 'bundler/gem_tasks'
-require 'coveralls/rake/task'
+# require 'coveralls/rake/task'
require 'rake/testtask'
require 'rake/notes/rake_task'
require 'rspec/core/rake_task'
@@ -16,19 +16,33 @@
desc "Run Rubocop"
task :cop do
exec "rubocop lib/"
end
-Coveralls::RakeTask.new
+# Coveralls::RakeTask.new
desc 'Run continuous integration test'
task :ci do
Rake::Task['test:unit'].invoke
unless ENV['TRAVIS'] == 'true' && ENV['TRAVIS_SECURE_ENV_VARS'] == 'false'
Rake::Task['test:integration'].invoke
end
Rake::Task['test:cop'].invoke if RUBY_VERSION.start_with?('2.2') == false
- Rake::Task['coveralls:push'].invoke
+ # Rake::Task['coveralls:push'].invoke
+end
+
+namespace :gem do
+ desc "Release gem version #{GoodData::VERSION} to rubygems"
+ task :release do |t|
+ gem = "gooddata-#{GoodData::VERSION}.gem"
+
+ puts "Building #{gem} ..."
+ res = system('gem build ./gooddata.gemspec')
+ next if !res
+
+ puts "Pushing #{gem} ..."
+ res = system("gem push #{gem}")
+ end
end
namespace :hook do
hook_path = File.join(File.dirname(__FILE__), '.git', 'hooks', 'pre-commit').to_s