-
Notifications
You must be signed in to change notification settings - Fork 5
/
Rakefile
40 lines (33 loc) · 1.04 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'rubygems'
require 'bundler/setup'
require 'xcoder'
require 'restkit/rake'
require 'ruby-debug'
RestKit::Rake::ServerTask.new do |t|
t.port = 4567
t.pid_file = 'Tests/Server/server.pid'
t.rackup_file = 'Tests/Server/server.ru'
t.log_file = 'Tests/Server/server.log'
t.adapter(:thin) do |thin|
thin.config_file = 'Tests/Server/thin.yml'
end
end
namespace :test do
task :kill_simulator do
system(%q{killall -m -KILL "iPhone Simulator"})
end
desc "Run the application tests for iOS"
task :application => :kill_simulator do
config = Xcode.project(:RKGithub).target(:RKGithubTests).config(:Debug)
builder = config.builder
build_dir = File.dirname(config.target.project.path) + '/Build'
builder.symroot = build_dir + '/Products'
builder.objroot = build_dir
builder.test(:sdk => 'iphonesimulator')
end
desc "Run all RKGithub tests"
task :all => ['test:application']
end
desc 'Run all the GateGuru tests'
task :test => "test:all"
task :default => ["server:autostart", "test:all", "server:autostop"]