Class: Xcodeci::BuildUtils
- Inherits:
-
Object
- Object
- Xcodeci::BuildUtils
- Defined in:
- lib/xcodeci/buildutils.rb
Instance Method Summary collapse
- #install_pod ⇒ Object
- #run_build(repository_url, workspace, scheme) ⇒ Object
- #run_test(repository_name, workspace, scheme) ⇒ Object
Instance Method Details
#install_pod ⇒ Object
4 5 6 7 |
# File 'lib/xcodeci/buildutils.rb', line 4 def install_pod %x(pod install) $?.exitstatus.zero? end |
#run_build(repository_url, workspace, scheme) ⇒ Object
9 10 11 12 |
# File 'lib/xcodeci/buildutils.rb', line 9 def run_build(repository_url, workspace, scheme) %x(xcodebuild -configuration Release -workspace \"#{workspace}\" -scheme \"#{scheme}\" -sdk iphoneos clean build 2>&1) $?.exitstatus.zero? end |
#run_test(repository_name, workspace, scheme) ⇒ Object
14 15 16 17 18 |
# File 'lib/xcodeci/buildutils.rb', line 14 def run_test(repository_name, workspace, scheme) %x(xcodebuild -configuration Release -workspace \"#{workspace}\" -scheme \"#{scheme}\" -sdk iphonesimulator8.0 -arch i386 clean test) # %x(xctool -configuration Release -workspace \"#{workspace}\" -scheme \"#{scheme}\" -sdk iphonesimulator test > /dev/null) $?.exitstatus.zero? end |