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

Commit 3b6b32f

Browse files
Fix ruby crashes from xcpretty on Travis
Ruby on Travis seems to be crashing when loading certain gems so force a known-working version to be used.
1 parent 4be633b commit 3b6b32f

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.travis.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ env:
3030

3131
# Install any required tools
3232
before_install:
33-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then sudo gem install xcpretty ; fi
33+
- |
34+
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
35+
rvm --default use 2.2.1
36+
gem install xcpretty
37+
fi
3438
3539
# Set up the source tree by fetching Linux-specific prebuilt objects
3640
install:
@@ -39,19 +43,19 @@ install:
3943

4044
# Bootstrap the LCB compiler, build the default target set and run a
4145
# the default test suite.
42-
script: >
46+
script: |
4347
case "${TRAVIS_OS_NAME}" in
4448
linux)
45-
BUILD_PLATFORM=linux ;
46-
CHECK_COMMAND=xvfb-run ;
47-
LICENSE_DIR="${HOME}/.runrev/licenses" ;
49+
BUILD_PLATFORM=linux
50+
CHECK_COMMAND=xvfb-run
51+
LICENSE_DIR="${HOME}/.runrev/licenses"
4852
;;
4953
osx)
50-
BUILD_PLATFORM=mac ;
51-
CHECK_COMMAND= ;
52-
LICENSE_DIR="${HOME}/Library/Application Support/RunRev/Licenses" ;
53-
export XCODEBUILD="set -o pipefail && xcodebuild" ;
54-
export XCODEBUILD_FILTER="| xcpretty" ;
54+
BUILD_PLATFORM=mac
55+
CHECK_COMMAND=
56+
LICENSE_DIR="${HOME}/Library/Application Support/RunRev/Licenses"
57+
export XCODEBUILD="set -o pipefail && xcodebuild"
58+
export XCODEBUILD_FILTER="| xcpretty"
5559
;;
5660
esac
5761
@@ -90,4 +94,4 @@ addons:
9094
- libpopt-dev
9195
- libesd0-dev
9296
- liblcms-dev
93-
- xvfb
97+
- xvfb

Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ else
4545
endif
4646

4747
# Prettifying output for CI builds
48-
ifeq ($(TRAVIS),true)
49-
XCODEBUILD := set -o pipefail && $(XCODEBUILD)
50-
XCODEBUILD_FILTER := | xcpretty
51-
else
52-
XCODEBUILD_FILTER :=
53-
endif
48+
XCODEBUILD_FILTER ?=
5449

5550
include Makefile.common
5651

0 commit comments

Comments
 (0)