.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. language: python
  2. sudo: false
  3. env:
  4. global: TEST_RUNNER=unittest PYTHONHASHSEED=random
  5. matrix:
  6. include:
  7. - python: "2.7"
  8. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  9. - python: "pypy"
  10. env: TEST_REQUIRE="fastimport"
  11. - python: "3.4"
  12. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  13. - python: "3.5"
  14. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  15. - python: "3.6"
  16. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  17. - python: "3.5-dev"
  18. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  19. - python: "3.6"
  20. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  21. - python: "3.6-dev"
  22. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  23. - python: "3.7-dev"
  24. env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  25. cache:
  26. directories:
  27. - $HOME/.cache/pip
  28. script:
  29. - pip install pip --upgrade
  30. - pip install $TEST_REQUIRE
  31. - pip install coverage codecov
  32. # Test without c extensions
  33. - python -m coverage run -p --source=dulwich -m $TEST_RUNNER dulwich.tests.test_suite
  34. # Test with c extensions
  35. - python setup.py build_ext -i
  36. - python -m coverage run -p --source=dulwich -m $TEST_RUNNER dulwich.tests.test_suite
  37. after_success:
  38. - python -m coverage combine
  39. - codecov