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' desc "Default: build and test" task :default => [:build, :test] desc "Bootstrap dependencies for the lib" 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 lib" task :build do system("xctool -workspace static-lib.xcworkspace -scheme static-lib -sdk iphoneos clean build") || fail("Error building lib") end desc "Clean, build the lib, run unit tests" task :test do system("xctool -workspace static-lib.xcworkspace -scheme static-lib -sdk iphonesimulator clean test") || fail("Error running unit tests") end