Sha256: ec950ac929f98c919f7074dd4cde5b1d06ead481547837cebe88f04bb5bf9794

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

require 'bundler'
Bundler.setup

# TODO: SG 10/4/13
# These lines seem to break trying to include frank-cucumber (maybe because it's not a cucumber run?)
# Would really like to fix this, not sure how.
# Bundler.require

require 'rake'
require 'cucumber'
require 'cucumber/rake/task'

desc "Default: build, test, frank"
task :default => [:build, :test, "frank:build", "frank:run"]

desc "Bootstrap dependencies for the app"
task :bootstrap do
  system("which -s brew") || fail("Cannot find 'brew' command. Have you installed homebrew?")
  system("brew update > /dev/null") || fail("Error: updating homebrew failed")
  system("which -s xctool") || system("brew install xctool") || fail("Error: installing xctool failed")
end

desc "Clean and build the app"
task :build do
  system("xctool -workspace simple.xcworkspace -scheme simple -sdk iphoneos clean build ONLY_ACTIVE_ARCH=NO") || fail("Error building app")
end

desc "Clean, build the app, run unit tests"
task :test do
  system("xctool -workspace simple.xcworkspace -scheme simple -sdk iphonesimulator clean test ONLY_ACTIVE_ARCH=NO") || fail("Error running unit tests")
end

desc "Configure Frank tests"
task "frank:setup" do 
  system("frank setup --project app/simple.xcodeproj --target simple") || fail("Error running frank setup")
end

desc "Build the frank target"
task "frank:build" do
  system("frank build --workspace simple.xcworkspace --scheme simple") || fail("Error running frank build")
end  

Cucumber::Rake::Task.new("frank:run") do |t|
  t.cucumber_opts = "Frank/features --format pretty"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xcbootstrap-0.0.2 templates/simple/Rakefile