diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-09-24 15:45:24 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-09-24 15:45:24 +0200 |
commit | 30f6b5fadf23bce586ade69bb701cb10a4a4e291 (patch) | |
tree | f75a7eef1ea82839effb0058e498a0beecfce188 /.travis.yml | |
parent | 6b0262794fa40b1c91f4edc6225ba0cff6baf06f (diff) | |
download | weechat-30f6b5fadf23bce586ade69bb701cb10a4a4e291.zip |
core: add a workaround for Python 3 issue on Travis CI
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 52677d1d8..a38cef2d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 |