thrust 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/bin/thrust +2 -9
  3. data/lib/config/{ios_example.yml → thrust_example.yml} +26 -19
  4. data/lib/tasks/autotag.rake +2 -2
  5. data/lib/tasks/cedar.rake +8 -11
  6. data/lib/tasks/testflight.rake +5 -14
  7. data/lib/tasks/version.rake +3 -7
  8. data/lib/thrust.rb +11 -13
  9. data/lib/thrust/agv_tool.rb +14 -0
  10. data/lib/thrust/app_config.rb +24 -10
  11. data/lib/thrust/cedar_results_parser.rb +7 -0
  12. data/lib/thrust/config_loader.rb +48 -0
  13. data/lib/thrust/deploy.rb +53 -0
  14. data/lib/thrust/deploy_provider.rb +17 -0
  15. data/lib/thrust/deployment_target.rb +6 -6
  16. data/lib/thrust/execution_helper.rb +1 -1
  17. data/lib/thrust/executor.rb +2 -1
  18. data/lib/thrust/ios_spec_launcher.rb +36 -0
  19. data/lib/thrust/osx_spec_launcher.rb +15 -0
  20. data/lib/thrust/scheme_parser.rb +35 -0
  21. data/lib/thrust/{ios_spec_target.rb → spec_target.rb} +1 -3
  22. data/lib/thrust/tasks.rb +1 -1
  23. data/lib/thrust/tasks/autotag/list.rb +2 -2
  24. data/lib/thrust/tasks/clean.rb +5 -5
  25. data/lib/thrust/tasks/focused_specs.rb +14 -4
  26. data/lib/thrust/tasks/nof.rb +8 -3
  27. data/lib/thrust/tasks/spec_runner.rb +75 -0
  28. data/lib/thrust/xcode_tools.rb +159 -0
  29. data/lib/thrust/xcode_tools_provider.rb +11 -0
  30. metadata +36 -23
  31. data/lib/config/android_example.yml +0 -17
  32. data/lib/thrust/android/deploy.rb +0 -38
  33. data/lib/thrust/android/deploy_provider.rb +0 -16
  34. data/lib/thrust/android/tools.rb +0 -43
  35. data/lib/thrust/config.rb +0 -43
  36. data/lib/thrust/ios/agv_tool.rb +0 -16
  37. data/lib/thrust/ios/cedar.rb +0 -27
  38. data/lib/thrust/ios/deploy.rb +0 -55
  39. data/lib/thrust/ios/deploy_provider.rb +0 -19
  40. data/lib/thrust/ios/x_code_tools.rb +0 -154
  41. data/lib/thrust/ios/x_code_tools_provider.rb +0 -13
  42. 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