core: add a workaround for Python 3 issue on Travis CI

v2.8-utf8proc
Sébastien Helleu 2017-09-24 15:45:24 +02:00
parent 6b0262794f
commit 30f6b5fadf
1 changed files with 9 additions and 7 deletions

View File

@ -8,16 +8,18 @@ sudo: required
dist: trusty
env:
- BUILDTOOL="cmake" BUILDARGS=""
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON3=ON"
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_GNUTLS=OFF"
- BUILDTOOL="autotools" BUILDARGS=""
- BUILDTOOL="autotools" BUILDARGS="--enable-python3"
- BUILDTOOL="autotools" BUILDARGS="--disable-gnutls"
- BUILDTOOL="cmake" BUILDARGS="" PY_VER=2.7
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_PYTHON3=ON" PY_VER=3.6
- BUILDTOOL="cmake" BUILDARGS="-DENABLE_GNUTLS=OFF" PY_VER=2.7
- BUILDTOOL="autotools" BUILDARGS="" PY_VER=2.7
- BUILDTOOL="autotools" BUILDARGS="--enable-python3" PY_VER=3.6
- BUILDTOOL="autotools" BUILDARGS="--disable-gnutls" PY_VER=2.7
before_script:
# Workaround travis-ci/travis-ci#5326
# Workaround https://github.com/travis-ci/travis-ci/issues/5326
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
# Workaround https://github.com/travis-ci/travis-ci/issues/8363
- pyenv global system ${PY_VER}
- echo 'APT::Install-Recommends "false";' | sudo tee -a /etc/apt/apt.conf
- sudo add-apt-repository -y ppa:ondrej/php
- sudo apt-get update -qq