summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 2753c292e0d44cef966539bdf8de951edafbd067 (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
cache: pip

python:
  - 2.7
  - 3.3
  - 3.4
  - 3.5
  - 3.5-dev
  - 3.6
  - 3.6-dev
  - 3.7-dev
  - pypy3.3-5.2-alpha1

env:
  - PYTHONHASHSEED=random
    TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"

matrix:
  include:
    - python: pypy
      env: TEST_REQUIRE=fastimport

install:
  - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE

script:
  # Test without c extensions
  - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite

  # Test with c extensions
  - python setup.py build_ext -i
  - python -m coverage run -p --source=dulwich -m unittest dulwich.tests.test_suite

  # Style
  - make style

after_success:
  - python -m coverage combine
  - codecov