Commit f5c02d3d authored by Stefan Behnel's avatar Stefan Behnel

extract some changes from pull request #504 that seem straight forward and...

extract some changes from pull request #504 that seem straight forward and helpful to speed up the travis builds
parent db2eb84f
language: python
sudo: false
cache:
pip: true
directories:
- $HOME/.ccache
python:
- 2.6
- 2.7
......@@ -12,8 +18,15 @@ python:
- pypy3
env:
- BACKEND=c
- BACKEND=cpp
global:
- USE_CCACHE=1
- CCACHE_SLOPPINESS=pch_defines,time_macros
- CCACHE_COMPRESS=1
- CCACHE_MAXSIZE=100M
- PATH="/usr/lib/ccache:$PATH"
matrix:
- BACKEND=c
- BACKEND=cpp
branches:
only:
......@@ -27,11 +40,13 @@ before_install:
install:
- 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
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
- 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
- CFLAGS="-O0 -ggdb -Wall -Wextra" python runtests.py -vv -x Debugger --backends=$BACKEND -j4
matrix:
allow_failures:
......@@ -42,4 +57,4 @@ matrix:
- python: pypy
env: BACKEND=cpp
- python: pypy3
env: BACKEND=cpp
env: BACKEND=cpp
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment