Module: XCode
- Defined in:
- lib/rake_ci_tools/runners/xcode.rb
Class Method Summary collapse
- .archive(workspace, scheme, configuration, sdk, provisioning_profile, build_dir) ⇒ Object
- .build(workspace, scheme, configuration, sdk, build_dir) ⇒ Object
- .build_and_test(workspace, scheme, configuration, destination) ⇒ Object
Class Method Details
.archive(workspace, scheme, configuration, sdk, provisioning_profile, build_dir) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/rake_ci_tools/runners/xcode.rb', line 18 def self.archive(workspace, scheme, configuration, sdk, provisioning_profile, build_dir) if workspace.nil? || scheme.nil? || provisioning_profile.nil? || configuration.nil? || build_dir.nil? raise(ArgumentError, "parameters can't be nil") end build(workspace, scheme, configuration, sdk, build_dir) sh "/usr/bin/xcrun -sdk iphoneos PackageApplication -v '#{build_dir}/#{scheme}.app' -o '#{build_dir}/#{scheme}.ipa' --embed '#{provisioning_profile}'" end |
.build(workspace, scheme, configuration, sdk, build_dir) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/rake_ci_tools/runners/xcode.rb', line 2 def self.build(workspace, scheme, configuration, sdk, build_dir) if workspace.nil? || scheme.nil? || configuration.nil? || sdk.nil? || build_dir.nil? raise(ArgumentError, "parameters can't be nil") end sh "xcodebuild -workspace '#{workspace}' -scheme '#{scheme}' -configuration '#{configuration}' -sdk '#{sdk}' CONFIGURATION_BUILD_DIR=#{build_dir}" end |
.build_and_test(workspace, scheme, configuration, destination) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/rake_ci_tools/runners/xcode.rb', line 10 def self.build_and_test(workspace, scheme, configuration, destination) if workspace.nil? || scheme.nil? || configuration.nil? || destination.nil? raise(ArgumentError, "parameters can't be nil") end sh "xcodebuild test -workspace '#{workspace}' -scheme '#{scheme}' -configuration '#{configuration}' -destination '#{destination}'" end |