travis: fix python3 for macOS machines

python3 couldn't be set up as system default because it was blocked by
the old python2.
This commit is contained in:
der richter 2019-12-28 19:16:00 +01:00
parent 1571276d64
commit e2c6919da0
1 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,11 @@ before_install:
- if [ "$TRAVIS_COMPILER" = "clang" ]; then export CXX="clang++"; fi
- if [ "$TRAVIS_COMPILER" = "gcc" ]; then export CXX="g++"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker pull $CONTAINER; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then "$TRAVIS_BUILD_DIR/ci/get_ffmpeg.sh"; fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew link --overwrite python
"$TRAVIS_BUILD_DIR/ci/get_ffmpeg.sh"
fi
script:
- ./bootstrap.py
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker run --env CC --env TARGET -v $TRAVIS_BUILD_DIR:/build $CONTAINER /bin/sh -c "cd /build && $CI_SCRIPT"; fi
@ -83,4 +87,5 @@ addons:
- luajit
- nasm
- pkg-config
- python
update: true