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
43 lines (33 loc) · 2.24 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
32
33
34
35
36
37
38
39
40
41
42
43
language: objective-c
osx_image: xcode9
env:
global:
- WORKSPACE="TPreventUnrecognizedSEL.xcworkspace"
- FRAMEWORK_SCHEME_F="TPUSELFastForwarding"
- FRAMEWORK_SCHEME_N="TPUSELNormalForwarding"
matrix:
# Fast Forwarding
- DESTINATION="OS=8.1,name=iPhone 4S" SCHEME="${FRAMEWORK_SCHEME_F} iOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=9.0,name=Apple TV 1080p" SCHEME="${FRAMEWORK_SCHEME_F} tvOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="${FRAMEWORK_SCHEME_F} macOS" EXAMPLE_NAME="${FRAMEWORK_SCHEME_F} Example" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=2.0,name=Apple Watch - 42mm" SCHEME="${FRAMEWORK_SCHEME_F} watchOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="YES"
# Normal Forwarding
- DESTINATION="OS=11.0,name=iPhone X" SCHEME="${FRAMEWORK_SCHEME_N} iOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="OS=10.2,name=Apple TV 1080p" SCHEME="${FRAMEWORK_SCHEME_N} tvOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="NO"
- DESTINATION="arch=x86_64" SCHEME="${FRAMEWORK_SCHEME_N} macOS" EXAMPLE_NAME="${FRAMEWORK_SCHEME_N} Example" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=4.0,name=Apple Watch - 42mm" SCHEME="${FRAMEWORK_SCHEME_N} watchOS" EXAMPLE_NAME="" BUILD_EXAMPLE="NO" POD_LINT="YES"
script:
- env
- xcodebuild -version
- xcodebuild -showsdks
- xcpretty --version
# Build Framework in Debug and Run Tests if specified
- xcodebuild clean build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" | xcpretty
# Build Example in Debug if specified
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild clean build -workspace "$WORKSPACE" -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;
fi