This repository has been archived by the owner on Jun 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 1.45 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
25
26
27
28
29
30
31
language: objective-c
osx_image: xcode9
env:
global:
- XCODEPROJECT="TPreventKVC.xcodeproj"
- FRAMEWORK_SCHEME="TPreventKVC"
matrix:
- DESTINATION="OS=8.1,name=iPhone 4S" SCHEME="${FRAMEWORK_SCHEME} iOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="YES"
- DESTINATION="OS=9.0,name=Apple TV 1080p" SCHEME="${FRAMEWORK_SCHEME} tvOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="${FRAMEWORK_SCHEME} macOS" EXAMPLE_NAME="${FRAMEWORK_SCHEME} Example" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=2.0,name=Apple Watch - 42mm" SCHEME="${FRAMEWORK_SCHEME} watchOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
script:
- env
- xcodebuild -version
- xcodebuild -showsdks
- xcpretty --version
# Build Framework in Debug and Run Tests if specified
- xcodebuild clean build -project "$XCODEPROJECT" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
# Build Example in Debug if specified
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild clean build -project "$XCODEPROJECT" -scheme "$EXAMPLE_NAME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO | xcpretty;
fi
# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
pod lib lint --allow-warnings;
fi