-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
24 lines (24 loc) · 1.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: objective-c
osx_image: xcode10.1
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
matrix:
- DESTINATION="OS=12.1,name=iPhone XR" SCHEME="sRetoTests" SDK=iphonesimulator12.1 BUILD_EXAMPLE="YES"
- DESTINATION="arch=x86_64" SCHEME="sRetoTests" SDK=macosx10.13 BUILD_EXAMPLE="NO"
before_install:
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -project Source/sReto.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c
- xcodebuild -project Source/sReto.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO test | xcpretty -c
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -project "Examples/SimpleChat/SimpleChatSwift.xcworkspace" -scheme "SimpleChatIOS" -sdk "$SDK" -destination "$DESTINATION"
-configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
fi
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -project "Examples/SimpleChat/SimpleChatSwift.xcworkspace" -scheme "SimpleChatIOS" -sdk "$SDK" -destination "$DESTINATION"
-configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
fi