Skip to content

Commit ceb1d81

Browse files
committed
Update osx_image to xcode9
1 parent a63412d commit ceb1d81

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

.travis.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
language: objective-c
2-
osx_image: xcode8
2+
osx_image: xcode9
3+
branches:
4+
only:
5+
- master
6+
env:
7+
global:
8+
- LC_CTYPE=en_US.UTF-8
9+
- LANG=en_US.UTF-8
10+
- PROJECT=LeanCloud.xcodeproj
11+
- IOS_FRAMEWORK_SCHEME="LeanCloud"
12+
matrix:
13+
- DESTINATION="OS=11.0,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES"
14+
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES"
15+
- DESTINATION="OS=9.0,name=iPhone 6" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES"
316
before_install: rvm use 2.0
417
install: gem install slather
5-
script: xcodebuild test -project LeanCloud.xcodeproj -scheme LeanCloud -sdk iphonesimulator
18+
script:
19+
- set -o pipefail
20+
- xcodebuild -version
21+
- xcodebuild -showsdks
22+
23+
# Build Framework in Debug and Run Tests if specified
24+
- if [ $RUN_TESTS == "YES" ]; then
25+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
26+
else
27+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty;
28+
fi
29+
30+
# Build Framework in Release and Run Tests if specified
31+
- if [ $RUN_TESTS == "YES" ]; then
32+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | xcpretty;
33+
else
34+
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | xcpretty;
35+
fi
636
after_success: slather

0 commit comments

Comments
 (0)