Sha256: 13096980ec6d78d6339886d9763414018fa4575923ade3ebb90b433b78efb9a7

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 KB

Contents

require 'rubygems'
require 'cucumber'
require 'cucumber/rake/task'
require 'rake'
require 'rspec/core/rake_task'
require 'simplecov'
require 'yard'


desc 'Run required specs'
RSpec::Core::RakeTask.new(:required_specs) do |t|
  t.rspec_opts = '--tag required'
end


desc 'Run web specs'
RSpec::Core::RakeTask.new(:web_specs) do |t|
  t.rspec_opts = '--tag web'
end


desc 'Run Cucumber features on iOS simulator'
Cucumber::Rake::Task.new(:ios_sim) do |t|
  t.profile = 'ios_sim'
end


desc 'Run Cucumber features on Android simulator'
Cucumber::Rake::Task.new(:android_sim) do |t|
  t.profile = 'android_sim'
end


desc 'Run required specs and Cucumber features'
task required: [:required_specs, :android_sim, :ios_sim]


desc 'Run all specs and Cucumber features'
task all_specs: [:required_specs, :web_specs]


desc 'Run all specs and Cucumber features'
task all: [:required_specs, :web_specs, :android_sim, :ios_sim]


desc 'Update HTML docs'
YARD::Rake::YardocTask.new(:docs) do |t|
  t.files = ['lib/**/*.rb']
end


desc 'Build and release new version'
task :release do
  version = TestCentricity::VERSION
  puts "Releasing #{version}, y/n?"
  exit(1) unless $stdin.gets.chomp == 'y'
  sh 'gem build testcentricity.gemspec && ' \
     "gem push testcentricity-#{version}.gem"
end


desc 'Update docs, build gem, and push to RubyGems'
task ship_it: [:docs, :release]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
testcentricity-3.0.3 Rakefile
testcentricity-3.0.2 Rakefile
testcentricity-3.0.1 Rakefile
testcentricity-3.0.0 Rakefile