File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 11language : 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"
316before_install : rvm use 2.0
417install : 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
636after_success : slather
You can’t perform that action at this time.
0 commit comments