Skip to content

Instantly share code, notes, and snippets.

@MaximBazarov
Created May 16, 2018 06:03
Show Gist options
  • Save MaximBazarov/2c9d6034d29cb2db118a544931f234cf to your computer and use it in GitHub Desktop.
Save MaximBazarov/2c9d6034d29cb2db118a544931f234cf to your computer and use it in GitHub Desktop.
language: objective-c
osx_image: xcode9.3
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=Ronald.xcworkspace
- IOS_SCHEME="Ronald"
matrix:
- DESTINATION="OS=11.3,name=iPhone X" SCHEME="$IOS_SCHEME" RUN_TESTS="YES"
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$IOS_SCHEME" RUN_TESTS="YES"
- DESTINATION="OS=9.3,name=iPhone 6" SCHEME="$IOS_SCHEME" RUN_TESTS="YES"
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# Build Framework in Debug and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
else
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
fi
# Build Framework in Release and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
else
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment