Skip to content

Commit 5229146

Browse files
committed
Travis: Use MacPorts instead of Homebrew
Homebrew tends to drop support for a macOS release the second that Apple stops releasing security updates for it, and that makes HB difficult to use with some of the Travis macOS images. Furthermore, even on supported macOS releases, HB sometimes tries to build GCC from source even if a binary (bottle) is available. Long story short, MacPorts just generally has better backward compatibility. MacPorts is also what I personally use on the official libjpeg-turbo build machine.
1 parent c76f4a0 commit 5229146

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

.travis.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,17 @@ matrix:
5858
CMAKE_FLAGS="-DWITH_SIMD=0"
5959
CTEST_OUTPUT_ON_FAILURE=1
6060

61-
addons:
62-
homebrew:
63-
brewfile: true
64-
update: true
65-
66-
cache:
67-
directories:
68-
- $HOME/Library/Caches/Homebrew
69-
70-
before_cache:
71-
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
72-
7361
before_install:
7462
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
63+
pushd $HOME/Downloads &&
64+
curl -LO https://updates.cdn-apple.com/2019/cert/041-88384-20191011-3d8da658-dca4-4a5b-b67c-26e686876403/JavaForOSX.dmg &&
65+
hdid JavaForOSX.dmg &&
66+
sudo installer -pkg /Volumes/Java\ for\ macOS\ 2017-001/JavaForOSX.pkg -target / &&
67+
hdiutil detach /Volumes/Java\ for\ macOS\ 2017-001 &&
68+
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci &&
69+
. ./macports-ci install &&
70+
sudo /opt/local/bin/port -N install gcc5 yasm md5sha1sum &&
71+
popd &&
7572
git clone --depth=1 https://github.com/libjpeg-turbo/gas-preprocessor.git ~/src/gas-preprocessor &&
7673
ln -fs /Applications/Xcode.app /Applications/Xcode72.app;
7774
fi

Brewfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)