summaryrefslogtreecommitdiff
path: root/.travis.sh
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2020-02-01 18:27:10 +0100
committerSebastian Pipping <sebastian@pipping.org>2020-02-01 19:14:18 +0100
commit5c0fd5f7efe83008a6316db23351b6dbc21af664 (patch)
tree8e8ab930c63ad2dcbde9ae88f7b9b4fbd4676c66 /.travis.sh
parentcd9030cdc2107d95739730feb5ce1b24fac46ded (diff)
downloadlibexpat-git-5c0fd5f7efe83008a6316db23351b6dbc21af664.tar.gz
Travis: Extend ${PATH} for brew Python 3 on macOS
Diffstat (limited to '.travis.sh')
-rwxr-xr-x.travis.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.sh b/.travis.sh
index 3bf37cf1..44fcf604 100755
--- a/.travis.sh
+++ b/.travis.sh
@@ -31,6 +31,8 @@
set -e
if [[ ${TRAVIS_OS_NAME} = osx ]]; then
+ latest_brew_python3_bin="$(ls -1d /usr/local/Cellar/python/3.*/bin | sort -n | tail -n1)"
+ export PATH="${latest_brew_python3_bin}${PATH:+:}${PATH}"
export PATH="/usr/local/opt/coreutils/libexec/gnubin${PATH:+:}${PATH}"
elif [[ ${TRAVIS_OS_NAME} = linux ]]; then
export PATH="/usr/lib/llvm-9/bin:${PATH}"