Skip to content

Commit b13f8ea

Browse files
committed
Use xcbeautify if present
1 parent 5964896 commit b13f8ea

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Makefile

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
2-
XCPRETTY =
3-
ifdef XCPRETTY_PATH
4-
XCPRETTY = | xcpretty -c
1+
# If xcbeautify or xcpretty is available, use it for xcodebuild output, except in CI.
2+
XCPRETTY =
3+
ifeq ($(CI),true)
4+
else
5+
XCBEAUTIFY_PATH := $(shell command -v xcbeautify 2> /dev/null)
6+
XCPRETTY_PATH := $(shell command -v xcpretty 2> /dev/null)
7+
ifdef XCBEAUTIFY_PATH
8+
XCPRETTY = | xcbeautify
9+
else ifdef XCPRETTY_PATH
10+
XCPRETTY = | xcpretty -c
11+
endif
512
endif
613

714
test:

0 commit comments

Comments
 (0)