Skip to content

Instantly share code, notes, and snippets.

@odlp
Last active April 29, 2016 10:53
Show Gist options
  • Save odlp/5e37401281d27026474f to your computer and use it in GitHub Desktop.
Save odlp/5e37401281d27026474f to your computer and use it in GitHub Desktop.
iOS build on CI
#!/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