Sha256: e5aec34a62e8e27b883dacb84f484014ea839beb99b7d093ca5fdc1349813049
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
require "bundler/gem_tasks" require 'coveralls/rake/task' require 'racatt' namespace 'cuke_modeler' do task :clear_coverage do code_coverage_directory = "#{File.dirname(__FILE__)}/coverage" FileUtils.remove_dir(code_coverage_directory, true) end Racatt.create_tasks # Redefining the task from 'racatt' in order to clear the code coverage results task :test_everything => :clear_coverage # The task that CI will use Coveralls::RakeTask.new task :ci_build => [:smart_test, 'coveralls:push'] desc 'Test gem based on Ruby/dependency versions' task :smart_test do |t, args| rspec_args = '--tag ~@wip --pattern testing/rspec/spec/**/*_spec.rb' cucumber_version = Gem.loaded_specs['cucumber'].version.version if cucumber_version =~ /^[123]\./ cucumber_args = 'testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t ~@wip' else cucumber_args = "testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t 'not @wip'" end Rake::Task['cuke_modeler:test_everything'].invoke(rspec_args, cucumber_args) end # The task used to publish the current feature file documentation to Relish desc 'Publish feature files to Relish' task :publish_features do # Get existing versions this_dir = File.dirname(__FILE__) output = `relish versions enkessler/CukeModeler` # Add the current version if it doesn't exist unless output =~ /#{Regexp.escape(CukeModeler::VERSION)}/ output = `relish versions:add enkessler/CukeModeler:#{CukeModeler::VERSION}` puts output end # Publish the features output = `relish push enkessler/CukeModeler:#{CukeModeler::VERSION} path #{this_dir}/testing/cucumber` puts output end end task :default => 'cuke_modeler:smart_test'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-1.5.0 | Rakefile |
cuke_modeler-1.4.0 | Rakefile |