Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 995a89e

Browse files
Use xcpretty to filter Xcode output instead of a regex
It is prettier and more robust.
1 parent a94beed commit 995a89e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ env:
3333
- secure: "R/JfoBMrkhCGWhfWM1m3gPHuLtMBlp2SIK1R9BaPbRsbGBUJmAg9V0g0YXSaw8SVxoyuiL/jsLtHPfDeub9oTxrYydew+6/4KaoQdG7EGXQJfBhH2f0ag/hTKJfXnmZX9jMMnTxPf5Axjq+w4E6sKkU2+d1oAJRhrqzYNwDhVlc="
3434
- CXX_STD: "c++11"
3535

36+
# Install any required tools
37+
before_install:
38+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then sudo gem install xcpretty ; fi
39+
3640
# Set up the source tree by fetching Linux-specific prebuilt objects
3741
install:
3842
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then (cd prebuilt && ./fetch-libraries.sh linux) ; fi

Makefile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ else
5353
BUILD_PROJECT := livecode
5454
endif
5555

56+
# Prettifying output for CI builds
57+
ifeq ($(TRAVIS),true)
58+
XCODEBUILD := set -o pipefail && $(XCODEBUILD)
59+
XCODEBUILD_FILTER := | xcpretty
60+
else
61+
XCODEBUILD_FILTER :=
62+
endif
63+
5664
################################################################
5765

5866
.DEFAULT: all
@@ -132,10 +140,11 @@ config-mac:
132140

133141
compile-mac:
134142
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target default \
135-
| egrep '^(/.+:[0-9+:[0-9]+:.(error|warning):|fatal|===)'
143+
$(XCODEBUILD_FILTER)
136144

137145
check-mac:
138-
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check
146+
$(XCODEBUILD) -project "build-mac$(BUILD_SUBDIR)/$(BUILD_PROJECT).xcodeproj" -configuration $(BUILDTYPE) -target check \
147+
$(XCODEBUILD_FILTER)
139148
$(MAKE) check-common-mac
140149

141150

0 commit comments

Comments
 (0)