Travis: Use Python 3 for SCons

(cherry picked from commit 83ec7cc425)
This commit is contained in:
Rémi Verschelde 2020-02-10 09:15:27 +01:00
parent 541251dff7
commit 636093784b
1 changed files with 13 additions and 4 deletions

View File

@ -72,12 +72,20 @@ matrix:
env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang EXTRA_ARGS="warnings=extra werror=yes" env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang EXTRA_ARGS="warnings=extra werror=yes"
os: osx os: osx
compiler: clang compiler: clang
addons:
homebrew:
packages:
- scons
- name: iOS export template (debug, Clang) - name: iOS export template (debug, Clang)
stage: build stage: build
env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang
os: osx os: osx
compiler: clang compiler: clang
addons:
homebrew:
packages:
- scons
- name: Linux headless editor (release_debug, GCC 9, testing project exporting and script running) - name: Linux headless editor (release_debug, GCC 9, testing project exporting and script running)
stage: build stage: build
@ -109,16 +117,17 @@ before_install:
fi fi
install: install:
- pip install --user scons; - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pyenv global 3.7.1 system;
pip3 install --user scons;
fi
- scons --version
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PLATFORM" = "android" ]; then - if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$PLATFORM" = "android" ]; then
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64; export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64;
export PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:${PATH}; export PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin:${PATH};
java -version; java -version;
misc/travis/android-tools-linux.sh; misc/travis/android-tools-linux.sh;
fi fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export PATH=${PATH}:/Users/travis/Library/Python/2.7/bin;
fi
before_script: before_script:
- if [ "$PLATFORM" = "android" ]; then - if [ "$PLATFORM" = "android" ]; then