@@ -33,10 +33,12 @@ jobs:
33
33
git diff --exit-code Support/Carthage/Readium.xcodeproj
34
34
- name : Build
35
35
run : |
36
- xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
36
+ set -eo pipefail
37
+ xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
37
38
- name : Test
38
39
run : |
39
- xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device"
40
+ set -eo pipefail
41
+ xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
40
42
41
43
lint :
42
44
name : Lint
91
93
run : make dev lcp=${{ secrets.LCP_URL_SPM }}
92
94
- name : Build
93
95
run : |
94
- xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
96
+ set -eo pipefail
97
+ xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
95
98
96
99
int-spm :
97
100
name : Integration (Swift Package Manager)
@@ -118,7 +121,8 @@ jobs:
118
121
run : make spm lcp=${{ secrets.LCP_URL_SPM }} commit=$commit_sha
119
122
- name : Build
120
123
run : |
121
- xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
124
+ set -eo pipefail
125
+ xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
122
126
123
127
int-carthage :
124
128
name : Integration (Carthage)
@@ -145,7 +149,8 @@ jobs:
145
149
run : make carthage lcp=${{ secrets.LCP_URL_CARTHAGE }} commit=$commit_sha
146
150
- name : Build
147
151
run : |
148
- xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device"
152
+ set -eo pipefail
153
+ xcodebuild build -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
149
154
150
155
# Warning: This job cannot actually test the state of the current commit,
151
156
# but will check that the latest branch/tag set in the Podspecs are valid.
@@ -168,4 +173,5 @@ jobs:
168
173
run : make cocoapods lcp=${{ secrets.LCP_URL_COCOAPODS }} commit=$commit_sha
169
174
- name : Build
170
175
run : |
171
- xcodebuild build -workspace TestApp.xcworkspace -scheme TestApp -destination "platform=$platform,name=$device"
176
+ set -eo pipefail
177
+ xcodebuild build -workspace TestApp.xcworkspace -scheme TestApp -destination "platform=$platform,name=$device" | if command -v xcpretty &> /dev/null; then xcpretty; else cat; fi
0 commit comments