@@ -2,16 +2,10 @@ language: objective-c
2
2
osx_image : xcode9.4
3
3
4
4
env :
5
- global :
6
- - NAME='UserDefaultsStore'
7
- - PROJECT='UserDefaultsStore.xcodeproj'
8
-
9
- - IOS_DESTINATION='platform=iOS Simulator,name=iPhone X'
10
- - TVOS_DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
11
- - WATCHOS_DESTINATION='name=Apple Watch - 42mm'
12
- - MACOS_DESTINATION='platform=OS X'
13
-
14
- - CODECOV_TOKEN='5ab4d3a7-d045-432d-91ca-5bd1f5fd5688'
5
+ - ACTION=test PLATFORM=Mac DESTINATION='platform=OS X'
6
+ - ACTION=test PLATFORM=iOS DESTINATION='platform=iOS Simulator,name=iPhone X'
7
+ - ACTION=build PLATFORM=watchOS DESTINATION='platform=watchOS Simulator,name=Apple Watch - 42mm'
8
+ - ACTION=test PLATFORM=tvOS DESTINATION='platform=tvOS Simulator,name=Apple TV 4K (at 1080p)'
15
9
16
10
before_install :
17
11
- bundle install
@@ -20,14 +14,5 @@ before_install:
20
14
21
15
script :
22
16
- set -o pipefail
23
-
24
- - xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$IOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-ios.json" xcpretty -f `xcpretty-json-formatter`
25
- - bash <(curl -s https://codecov.io/bash) -cF ios -J "$NAME" -t "$CODECOV_TOKEN"
26
-
27
- - xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$TVOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-tvos.json" xcpretty -f `xcpretty-json-formatter`
28
- - bash <(curl -s https://codecov.io/bash) -cF tvos -J "$NAME" -t "$CODECOV_TOKEN"
29
-
30
- - xcodebuild clean build test -project "$PROJECT" -scheme "$NAME" -destination "$MACOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-macos.json" xcpretty -f `xcpretty-json-formatter`
31
- - bash <(curl -s https://codecov.io/bash) -cF osx -J "$NAME" -t "$CODECOV_TOKEN"
32
-
33
- - xcodebuild clean build -project "$PROJECT" -scheme "$NAME" -destination "$WATCHOS_DESTINATION" | XCPRETTY_JSON_FILE_OUTPUT="xcodebuild-watchos.json" xcpretty -f `xcpretty-json-formatter`
17
+ - xcodebuild -scheme UserDefaultsStore -destination "$DESTINATION" $ACTION | xcpretty -f `xcpretty-json-formatter`
18
+ - bash <(curl -s https://codecov.io/bash)
0 commit comments