-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
34 lines (29 loc) · 976 Bytes
/
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
require 'bundler/setup'
require 'xcode_build'
require 'xcode_build/tasks/build_task'
require 'xcode_build/formatters/progress_formatter'
LIBRARY_VERSION = "1.4"
XCODEBUILD_LOG = File.join(File.dirname(__FILE__), "xcodebuild.log")
GITHUB_USER = 'jeremytregunna'
GITHUB_REPO = 'JInjector'
XcodeBuild::Tasks::BuildTask.new(:debug) do |t|
t.scheme = "JInjector-OSX"
t.configuration = "Debug"
t.formatter = XcodeBuild::Formatters::ProgressFormatter.new
t.xcodebuild_log_path = XCODEBUILD_LOG
end
namespace :test do
XcodeBuild::Tasks::BuildTask.new do |t|
t.project_name = 'JInjector.xcodeproj'
t.scheme = "JInjector-OSX"
t.configuration = "Debug"
t.sdk = "macosx10.8"
t.formatter = XcodeBuild::Formatters::ProgressFormatter.new
t.xcodebuild_log_path = XCODEBUILD_LOG
end
desc "Run unit tests"
task :run => 'xcode:build' do
sh "xcodebuild -scheme \"JInjector-OSX\" -sdk $OSX_VERSION test"
end
end
task :test => 'test:run'