1- osx_image : xcode8.3
1+ osx_image : xcode9
22language : objective-c
33sudo : required
44env :
55 global :
66 - PROJECT="AlertReactor.xcodeproj"
7- - SCHEME="AlertReactor"
8- - IOS_SDK="iphonesimulator10.3 "
7+ - SCHEME="AlertReactor-Package "
8+ - IOS_SDK="iphonesimulator11.0 "
99 - FRAMEWORK="AlertReactor"
1010 matrix :
11- - SDK="$IOS_SDK" TEST=1 DESTINATION="platform=iOS Simulator,name=iPhone 7 ,OS=10.3.1 "
11+ - SDK="$IOS_SDK" DESTINATION="platform=iOS Simulator,name=iPhone 8 ,OS=11.0 "
1212
1313install :
1414 - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
@@ -19,26 +19,14 @@ before_script:
1919 - swift package generate-xcodeproj
2020
2121script :
22- - if [ $TEST == 1 ]; then
23- xcodebuild clean build test
24- -project "$PROJECT"
25- -scheme "$SCHEME"
26- -sdk "$SDK"
27- -destination "$DESTINATION"
28- -configuration Debug
29- -enableCodeCoverage YES
30- CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
31- else
32- xcodebuild clean build
33- -project "$PROJECT"
34- -scheme "$SCHEME"
35- -sdk "$SDK"
36- -destination "$DESTINATION"
37- -configuration Debug
38- CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
39- fi
22+ - xcodebuild clean build test
23+ -project "$PROJECT"
24+ -scheme "$SCHEME"
25+ -sdk "$SDK"
26+ -destination "$DESTINATION"
27+ -configuration Debug
28+ -enableCodeCoverage YES
29+ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
4030
4131after_success :
42- - if [ $TEST == 1 ]; then
43- bash <(curl -s https://codecov.io/bash) -J 'AlertReactor' -X xcodeplist;
44- fi
32+ - bash <(curl -s https://codecov.io/bash) -X xcodeplist -J 'AlertReactor'
0 commit comments