aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-05-15 09:17:18 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-05-15 08:33:15 +0000
commitcd3e65a790b98e9106b56ad76863abe55b4096fa (patch)
treee7f78075600b5f0ac502537a37a054dc078d6ab9 /ci
parentf2d0551941d4131b8a5b9d3320b27d1333b24034 (diff)
downloadmeson-cd3e65a790b98e9106b56ad76863abe55b4096fa.zip
meson-cd3e65a790b98e9106b56ad76863abe55b4096fa.tar.gz
meson-cd3e65a790b98e9106b56ad76863abe55b4096fa.tar.bz2
travis/macos: Restore the old pkg-config behaviour
We need to test both "have pkg-config" and "don't have pkg-config" pathways on macOS, which is why pkg-config was only installed in one branch based on --unity=on/off.
Diffstat (limited to 'ci')
-rwxr-xr-xci/travis_install.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/travis_install.sh b/ci/travis_install.sh
index 5d191f1..d9d308a 100755
--- a/ci/travis_install.sh
+++ b/ci/travis_install.sh
@@ -7,9 +7,11 @@ msg() { echo -e "\x1b[1;32mINFO: \x1b[37m$*\x1b[0m"; }
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
msg "Running OSX setup"
brew update
+ # Run one macOS build with pkg-config available (pulled in by qt), and the
+ # other (unity=on) without pkg-config
brew install qt ldc llvm ninja
if [[ "$MESON_ARGS" =~ .*unity=on.* ]]; then
- which pkg-config || brew install pkg-config
+ which pkg-config && rm -f $(which pkg-config)
fi
python3 -m pip install jsonschema
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then