Last active
April 29, 2016 10:53
-
-
Save odlp/5e37401281d27026474f to your computer and use it in GitHub Desktop.
iOS build on CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Ensure Jenkins is using rbenv | |
export PATH=/usr/local/bin:$PATH | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
# Install gems & pods | |
bundle | |
bundle exec pod install | |
xcodebuild \ | |
-workspace ExampleBuild.xcworkspace \ | |
-scheme ExampleBuild \ | |
-destination 'platform=iOS Simulator,name=iPhone 6' \ | |
-sdk iphonesimulator test \ | |
| bundle exec xcpretty && exit ${PIPESTATUS[0]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment