From 10d169afd5b0d1200cff24c01de98c5be34e039f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 23 Jun 2020 11:50:21 +0200 Subject: [PATCH] Force Python 3 tox on Travis CI pip may point to Python 2 but setup.py requires Python 3. Tox sdist may fail when tox is installed for Python 2 on Travis CI. Signed-off-by: Christian Heimes --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 021fa401..35497998 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ env: - TOX_TESTENV_PASSENV="CFLAGS CI WITH_GCOV" install: - - pip install "pip>=7.1.0" - - pip install tox-travis tox codecov + - python3 -m pip install "pip>=7.1.0" + - python3 -m pip install tox-travis tox codecov -script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" tox +script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" python3 -m tox