-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (59 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
os: linux
dist: trusty
sudo: false
language: python
cache:
pip: true
directories:
- $HOME/.ccache
python:
- 2.7
- 3.6
- 3.5
- 3.4
env:
global:
- USE_CCACHE=1
- CCACHE_SLOPPINESS=pch_defines,time_macros
- CCACHE_COMPRESS=1
- CCACHE_MAXSIZE=70M
- PATH="/usr/lib/ccache:$PATH"
- LIBXSLT_VERSION=1.1.32
matrix:
- STATIC_DEPS=true
- STATIC_DEPS=false
matrix:
include:
- python: 3.7
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: STATIC_DEPS=true
- python: 3.7
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: STATIC_DEPS=false
- python: 3.8-dev
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: STATIC_DEPS=true
- python: 3.8-dev
dist: xenial # Required for Python 3.7
sudo: required # travis-ci/travis-ci#9069
env: STATIC_DEPS=false
- python: pypy
env: STATIC_DEPS=false
- python: pypy3
env: STATIC_DEPS=false
allow_failures:
- python: 3.7 # Currently needed to avoid waiting forever for the build.
- python: 3.8-dev
- python: pypy
- python: pypy3
install:
- pip install -U pip wheel
- pip install $(if [ -z "${TRAVIS_PYTHON_VERSION##*-dev}" ]; then echo "--install-option=--no-cython-compile"; fi ) -r requirements.txt
- pip install -U beautifulsoup4 cssselect html5lib
script:
- CFLAGS="-O0 -g -fPIC" CC="ccache gcc" python -u setup.py build_ext --inplace $(if [ -n "${TRAVIS_PYTHON_VERSION##2.*}" -a -n "${TRAVIS_PYTHON_VERSION##3.[34]*}" ]; then echo -n " -j7 "; fi )
- ccache -s || true
- CFLAGS="-O0 -g -fPIC" PYTHONUNBUFFERED=x make test