summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: ff313b0741cee646941599bba45b222585883f52 (plain)
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
language: python
dist: trusty
sudo: false

python:
  - 2.6
  - 2.7
  - 3.3
  - 3.4
  - 3.5
  - 3.6
  - 3.7
  - 3.7-dev
  - 3.8-dev
  - pypy
  - 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" 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 )
  - CFLAGS="-O0 -g -fPIC" PYTHONUNBUFFERED=x make test

matrix:
  allow_failures:
    - python: 3.8-dev
    - python: pypy
    - python: pypy3

cache:
  pip: true