Run style tests in travis.
[jelmer/dulwich.git] / .travis.yml
1 language: python
2 sudo: false
3 cache: pip
4
5 python:
6   - 2.7
7   - 3.3
8   - 3.4
9   - 3.5
10   - 3.5-dev
11   - 3.6
12   - 3.6-dev
13   - 3.7-dev
14   - pypy3.3-5.2-alpha1
15
16 env:
17   - PYTHONHASHSEED=random
18     TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
19
20 matrix:
21   include:
22     - python: pypy
23       env: TEST_REQUIRE=fastimport
24
25 install:
26   - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE
27
28 script:
29   # Test without c extensions
30   - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
31
32   # Test with c extensions
33   - python setup.py build_ext -i
34   - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite
35
36   # Style
37   - make style
38
39 after_success:
40   - python -m coverage combine
41   - codecov