Rakefile in cuke_modeler-1.2.1 vs Rakefile in cuke_modeler-1.3.0
- old
+ new
@@ -29,9 +29,28 @@
cucumber_args = 'testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t ~@wip'
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'