Require urllib>=1.23, because of CVE-2018-20060
[jelmer/dulwich.git] / .travis.yml
1 language: python
2 sudo: false
3 cache: pip
4
5 python:
6   - 2.7
7   - 3.4
8   - 3.5
9   - 3.6
10   - 3.6-dev
11   - pypy3.5
12
13 env:
14   - PYTHONHASHSEED=random
15     TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
16
17 matrix:
18   include:
19     - python: pypy
20       env: TEST_REQUIRE=fastimport
21     - python: 3.7
22       env: TEST_REQUIRE=fastimport
23       dist: xenial
24       sudo: true
25     # flakes checker fails on python 3.8-dev:
26     #- python: 3.8-dev
27     #  env: TEST_REQUIRE=fastimport
28     #  dist: xenial
29     #  sudo: true
30
31 install:
32   - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE
33
34 script:
35   # Test without c extensions
36   - python -m coverage run -p -m unittest dulwich.tests.test_suite
37
38   # Test with c extensions
39   - python setup.py build_ext -i
40   - python -m coverage run -p -m unittest dulwich.tests.test_suite
41
42   # Style
43   - make style
44
45 after_success:
46   - python -m coverage combine
47   - codecov