From ae77b2f6fccde1928657ec99242caad46dc295a6 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Wed, 1 Nov 2017 18:45:00 +0300 Subject: Travis-CI: Rework config file and do not test debugger on PyPy --- .travis.yml | 21 ++++++++++++++++----- 1 file 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 -- cgit v1.2.1