-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
34 lines (28 loc) · 1.3 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
language: objective-c
osx_image: xcode10
env:
global:
- XCODEPROJECT="TWebKit.xcodeproj"
- FRAMEWORK_SCHEME="TWebKit"
- EXAMPLE_SCHEME="Example"
matrix:
- DESTINATION="OS=12.0,name=iPhone XS Max" SCHEME="$FRAMEWORK_SCHEME" BUILD_EXAMPLE="YES" POD_LINT="YES"
- DESTINATION="OS=11.0,name=iPhone X" SCHEME="$FRAMEWORK_SCHEME" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$FRAMEWORK_SCHEME" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=9.3,name=iPhone 6" SCHEME="$FRAMEWORK_SCHEME" BUILD_EXAMPLE="YES" POD_LINT="NO"
- DESTINATION="OS=8.1,name=iPhone 5s" SCHEME="$FRAMEWORK_SCHEME" BUILD_EXAMPLE="YES" 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_SCHEME" -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