mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +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" = "clang" ]; then export CXX="clang++"; fi
|
||||||
- if [ "$TRAVIS_COMPILER" = "gcc" ]; then export CXX="g++"; fi
|
- if [ "$TRAVIS_COMPILER" = "gcc" ]; then export CXX="g++"; fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker pull $CONTAINER; 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:
|
script:
|
||||||
- ./bootstrap.py
|
- ./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
|
- 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
|
- luajit
|
||||||
- nasm
|
- nasm
|
||||||
- pkg-config
|
- pkg-config
|
||||||
|
- python
|
||||||
update: true
|
update: true
|
||||||
|
Loading…
Reference in New Issue
Block a user