mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
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:
parent
1571276d64
commit
e2c6919da0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user