summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 300c3b4d65cda3dc78e3b348eefe0d4bceedca82 (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
35
36
37
38
39
40
41
language: python
sudo: false
matrix:
  include:
    - python: 2.7
      env: MINIMAL=1
python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - pypy
  - pypy3

matrix:
  include:
    - python: "3.7"
      dist: xenial
      sudo: true

script:
  - coverage run -m zope.testrunner --test-path=src
  - if [[ -z "$MINIMAL" ]]; then sphinx-build                      -b html    -d docs/_build/doctrees docs docs/_build/html; fi
  - if [[ -z "$MINIMAL" ]]; then coverage run -a `which sphinx-build` -b doctest -d docs/_build/doctrees docs docs/_build/doctest; fi

after_success:
  - coveralls
notifications:
  email: false

install:
  - pip install -U pip setuptools
  - pip install -U coveralls coverage
  - if [[ -n "$MINIMAL" ]]; then pip install -U -e ".[mintests]"; fi
  - if [[ -z "$MINIMAL" ]]; then pip install -U -e ".[test,docs]"; fi


cache: pip

before_cache:
  - rm -f $HOME/.cache/pip/log/debug.log