summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisandro Dalcin <dalcinl@gmail.com>2017-11-01 18:45:00 +0300
committerLisandro Dalcin <dalcinl@gmail.com>2017-11-01 18:45:00 +0300
commitae77b2f6fccde1928657ec99242caad46dc295a6 (patch)
tree44546cb501c2ed3563a3e5ca2c9ed3d24e667e43
parentc502d101cc9c5864349c43bc25d200548b0b7f1d (diff)
downloadcython-dalcinl/fix-travis.tar.gz
Travis-CI: Rework config file and do not test debugger on PyPydalcinl/fix-travis
-rw-r--r--.travis.yml21
1 files changed, 16 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 19a5c9f1f..24c46782e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -91,17 +91,28 @@ before_install:
export PATH="$HOME/miniconda/bin:$PATH"; hash -r;
#conda install --quiet --yes nomkl --file=test-requirements.txt --file=test-requirements-cpython.txt;
fi
+ - python -c 'import sys; print("Python %s" % (sys.version,))'
+ - |
+ if [ -n "${TRAVIS_PYTHON_VERSION##*-dev}" -a -n "${TRAVIS_PYTHON_VERSION##2.6*}" ]; then # Install test requirements
+ pip install -r test-requirements.txt
+ if [ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]; then
+ pip install -r test-requirements-cpython.txt
+ fi
+ fi
+ - if [ "$BACKEND" = "cpp" -a -n "${TRAVIS_PYTHON_VERSION##2.6*}" ]; then pip install pythran; fi
install:
- - python -c 'import sys; print("Python %s" % (sys.version,))'
- - if [ -n "${TRAVIS_PYTHON_VERSION##*-dev}" -a -n "${TRAVIS_PYTHON_VERSION##2.6*}" ]; then pip install -r test-requirements.txt $( [ -z "${TRAVIS_PYTHON_VERSION##pypy*}" ] || echo " -r test-requirements-cpython.txt" ) ; fi
- CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" python setup.py build
before_script: ccache -s || true
script:
- - PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg"
- - if $PYTHON_DBG -V >&2; then CFLAGS="-O0 -ggdb" $PYTHON_DBG runtests.py -vv Debugger --backends=$BACKEND; fi
- - if [ "$BACKEND" = "cpp" -a -n "${TRAVIS_PYTHON_VERSION##2.6*}" ]; then pip install pythran; fi
+ - |
+ if [ "${TRAVIS_PYTHON_VERSION:0:4}" != "pypy" ]; then # Test Debugger support
+ PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg"
+ if $PYTHON_DBG -V >&2; then
+ CFLAGS="-O0 -ggdb" $PYTHON_DBG runtests.py -vv Debugger --backends=$BACKEND
+ fi
+ fi
- CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" python setup.py build_ext -i
- CFLAGS="-O0 -ggdb -Wall -Wextra" python runtests.py -vv -x Debugger --backends=$BACKEND -j7