diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2016-06-12 09:04:53 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-07-15 08:19:33 +0200 |
commit | f5c02d3d6ce20741c41cc9ab27d7239138f3b995 (patch) | |
tree | b1a57f579679dc7f57ceceabab9980fbbca67a93 | |
parent | db2eb84f720596a0014d5673bdd23ffdb6b5d62a (diff) | |
download | cython-f5c02d3d6ce20741c41cc9ab27d7239138f3b995.tar.gz |
extract some changes from pull request #504 that seem straight forward and helpful to speed up the travis builds
-rw-r--r-- | .travis.yml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 4c999b800..0552acc85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ 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 |