thrust 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/thrust +2 -9
- data/lib/config/{ios_example.yml → thrust_example.yml} +26 -19
- data/lib/tasks/autotag.rake +2 -2
- data/lib/tasks/cedar.rake +8 -11
- data/lib/tasks/testflight.rake +5 -14
- data/lib/tasks/version.rake +3 -7
- data/lib/thrust.rb +11 -13
- data/lib/thrust/agv_tool.rb +14 -0
- data/lib/thrust/app_config.rb +24 -10
- data/lib/thrust/cedar_results_parser.rb +7 -0
- data/lib/thrust/config_loader.rb +48 -0
- data/lib/thrust/deploy.rb +53 -0
- data/lib/thrust/deploy_provider.rb +17 -0
- data/lib/thrust/deployment_target.rb +6 -6
- data/lib/thrust/execution_helper.rb +1 -1
- data/lib/thrust/executor.rb +2 -1
- data/lib/thrust/ios_spec_launcher.rb +36 -0
- data/lib/thrust/osx_spec_launcher.rb +15 -0
- data/lib/thrust/scheme_parser.rb +35 -0
- data/lib/thrust/{ios_spec_target.rb → spec_target.rb} +1 -3
- data/lib/thrust/tasks.rb +1 -1
- data/lib/thrust/tasks/autotag/list.rb +2 -2
- data/lib/thrust/tasks/clean.rb +5 -5
- data/lib/thrust/tasks/focused_specs.rb +14 -4
- data/lib/thrust/tasks/nof.rb +8 -3
- data/lib/thrust/tasks/spec_runner.rb +75 -0
- data/lib/thrust/xcode_tools.rb +159 -0
- data/lib/thrust/xcode_tools_provider.rb +11 -0
- metadata +36 -23
- data/lib/config/android_example.yml +0 -17
- data/lib/thrust/android/deploy.rb +0 -38
- data/lib/thrust/android/deploy_provider.rb +0 -16
- data/lib/thrust/android/tools.rb +0 -43
- data/lib/thrust/config.rb +0 -43
- data/lib/thrust/ios/agv_tool.rb +0 -16
- data/lib/thrust/ios/cedar.rb +0 -27
- data/lib/thrust/ios/deploy.rb +0 -55
- data/lib/thrust/ios/deploy_provider.rb +0 -19
- data/lib/thrust/ios/x_code_tools.rb +0 -154
- data/lib/thrust/ios/x_code_tools_provider.rb +0 -13
- data/lib/thrust/tasks/ios_specs.rb +0 -43
@@ -1,13 +0,0 @@
|
|
1
|
-
module Thrust
|
2
|
-
module IOS
|
3
|
-
class XCodeToolsProvider
|
4
|
-
def initialize(thrust_executor = Thrust::Executor.new)
|
5
|
-
@thrust_executor = thrust_executor
|
6
|
-
end
|
7
|
-
|
8
|
-
def instance(out, build_configuration, build_directory, options)
|
9
|
-
Thrust::IOS::XCodeTools.new(@thrust_executor, out, build_configuration, build_directory, options)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
module Thrust
|
2
|
-
module Tasks
|
3
|
-
class IOSSpecs
|
4
|
-
def initialize(out = $stdout,
|
5
|
-
xcode_tools_provider = Thrust::IOS::XCodeToolsProvider.new,
|
6
|
-
cedar = Thrust::IOS::Cedar.new)
|
7
|
-
@xcode_tools_provider = xcode_tools_provider
|
8
|
-
@cedar = cedar
|
9
|
-
@out = out
|
10
|
-
end
|
11
|
-
|
12
|
-
def run(thrust, target_info, args)
|
13
|
-
build_configuration = target_info.build_configuration
|
14
|
-
type = target_info.type
|
15
|
-
target = target_info.target
|
16
|
-
scheme = target_info.scheme
|
17
|
-
build_sdk = target_info.build_sdk
|
18
|
-
os_version = args[:os_version] || target_info.os_version
|
19
|
-
device_name = args[:device_name] || target_info.device_name
|
20
|
-
|
21
|
-
if device_name
|
22
|
-
substitution_map = {'bundle' => '-', 'app' => ' '}
|
23
|
-
destination_map = {'bundle' => ' ', 'app' => '-'}
|
24
|
-
device_name.gsub!(substitution_map[type], destination_map[type])
|
25
|
-
end
|
26
|
-
|
27
|
-
tools_options = {
|
28
|
-
project_name: thrust.app_config.project_name,
|
29
|
-
workspace_name: thrust.app_config.workspace_name
|
30
|
-
}
|
31
|
-
xcode_tools = @xcode_tools_provider.instance(@out, build_configuration, thrust.build_dir, tools_options)
|
32
|
-
|
33
|
-
if type == 'app'
|
34
|
-
xcode_tools.build_scheme_or_target(scheme || target, build_sdk)
|
35
|
-
xcode_tools.kill_simulator
|
36
|
-
@cedar.run(build_configuration, target, build_sdk, os_version, device_name, target_info.timeout, thrust.build_dir, thrust.app_config.ios_sim_path)
|
37
|
-
else
|
38
|
-
xcode_tools.test(target || scheme, build_configuration, os_version, device_name, target_info.timeout, thrust.build_dir)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|