.travis.yml 979 B

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