require 'fileutils' require 'bundler' Bundler::GemHelper.install_tasks require 'rspec/core/rake_task' RSpec::Core::RakeTask.new task :test => :spec # REQUIRES that the calabash-ios-server source code is located # # ../../calabash-ios-server. # # if your server source code is in a different location, you can use: # # $ CALABASH_SERVER_PATH=/your/path rake build_server' # # to specify an alternative server location desc 'build the calabash.framework and install it in ./staticlib/.' task :build_server do FRAMEWORK='calabash.framework' ZIP_FILE="#{FRAMEWORK}.zip" def build_server return if ENV['SKIP_SERVER'] framework_zip = nil dir = ENV['CALABASH_SERVER_PATH'] || File.join('..', '..', 'calabash-ios-server') unless File.exist?(dir) raise < true) puts "INFO: calabash.framework.zip installed in #{output_path}" end build_server end task :install_server => [:build_server] task :release_server => [:build_server]