Don't run greenlet-based tests on 3.7/3.8-dev.
[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.5-dev
10   - 3.6
11   - 3.6-dev
12   - pypy3.3-5.2-alpha1
13   - pypy3.5
14
15 env:
16   - PYTHONHASHSEED=random
17     TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
18
19 matrix:
20   include:
21     - python: pypy
22       env: TEST_REQUIRE=fastimport
23     - python: 3.3
24       env: TEST_REQUIRE=fastimport
25     - python: 3.7
26       env: TEST_REQUIRE=fastimport
27       dist: xenial
28       sudo: true
29     - python: 3.8-dev
30       env: TEST_REQUIRE=fastimport
31       dist: xenial
32       sudo: true
33       
34
35 install:
36   - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE
37
38 script:
39   # Test without c extensions
40   - python -m coverage run -p -m unittest dulwich.tests.test_suite
41
42   # Test with c extensions
43   - python setup.py build_ext -i
44   - python -m coverage run -p -m unittest dulwich.tests.test_suite
45
46   # Style
47   - make style
48
49 after_success:
50   - python -m coverage combine
51   - codecov