summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2020-04-08 13:46:29 -0700
committerRalph Giles <giles@thaumas.net>2020-04-08 16:03:15 -0700
commite2887fcab6df4c781d379e27f5c40bd048c74dc2 (patch)
tree4ea1f0240c3cf0938224227957a32ecbe4946994
parentef3a5daec5020b78ecf936afa79a21e2292d73a2 (diff)
downloadlibvorbis-git-e2887fcab6df4c781d379e27f5c40bd048c74dc2.tar.gz
travis-ci: Build on the xcode11 macOS image.
Fix the macOS builds on the travis-ci.org continuous integration system by requiring a more recently-created system image where homebrew packages install correctly. Also switch to declarative syntax for the homebrew package dependencies, using the built-in Brewfile support instead of invoking `brew` explicitly. Travis doesn't update the homebrew three on their default macOS images, so over time available packages become out-of-date, or any explicit update step takes longer and longer, slowing the testing feedback loop. In this particular instance jobs were failing because homebrew on the default macOS image wasn't working at all. Without an update, package installation failed because the `brew bundle` subcommand had itself bitrotted, while running `brew update` would time out, taking more than the allowed job time. Requiring a more recent (non-default) macOS image gets out tests working again. In the future this will probably need to be bumped again or restored to the default image. For more context, see https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/14
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 5398066b..23fec3d4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,8 @@ os:
- linux
- osx
+osx_image: xcode11
+
compiler:
- gcc
- clang
@@ -16,9 +18,9 @@ addons:
apt:
packages:
- libogg-dev
-
-install:
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
+ homebrew:
+ brewfile: true
+ update: true
script:
- if [[ "$BUILD_SYSTEM" == "AUTOTOOLS" ]] ; then ./autogen.sh && ./configure && make -j2 V=1 distcheck; fi