.travis.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. language: python
  2. sudo: false
  3. cache: pip
  4. python:
  5. - 2.7
  6. - 3.4
  7. - 3.5
  8. - 3.6
  9. - pypy3.5
  10. env:
  11. - PYTHONHASHSEED=random
  12. TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
  13. PURE=false
  14. matrix:
  15. include:
  16. - python: pypy
  17. env: TEST_REQUIRE=fastimport
  18. - python: 3.7
  19. env: TEST_REQUIRE=fastimport
  20. dist: xenial
  21. sudo: true
  22. - python: 3.8
  23. env: TEST_REQUIRE=fastimport
  24. dist: xenial
  25. sudo: true
  26. - python: 3.8
  27. env: TEST_REQUIRE=fastimport
  28. dist: xenial
  29. sudo: true
  30. - python: 3.6
  31. env: PURE=true
  32. - python: 2.7
  33. env: PURE=true
  34. install:
  35. - travis_retry pip install -U pip coverage codecov flake8 $TEST_REQUIRE
  36. script:
  37. - if [ $PURE = false ]; then python setup.py build_ext -i; fi
  38. - python -m coverage run -p -m unittest dulwich.tests.test_suite
  39. # Style
  40. - make style
  41. - if [ $PURE = true ]; then SETUP_ARGS=--pure; fi
  42. - python setup.py $SETUP_ARGS bdist_wheel
  43. after_success:
  44. - python -m coverage combine
  45. - codecov
  46. deploy:
  47. provider: pypi
  48. user: dulwich-bot
  49. password:
  50. secure: Q8DDDojBugQWzXvmmEQiU90UkVPk+OYoFZwv1H9LYpQ4u5CfwQNWpf8qXYhlGMdr/gzWaSWsqLvgWLpzfkvqS4Vyk2bO9mr+dSskfD8uwc82LiiL9CNd/NY03CjH9RaFgVMD/+exMjY/yCtlyH1jL4kjgOyNnC+x4B37CliZHcE=
  51. skip_cleanup: true
  52. skip_existing: true
  53. file_glob: true
  54. file:
  55. - dist/dulwich*.whl
  56. - dist/dulwich*.tar.gz
  57. on:
  58. tags: true
  59. repo: dulwich/dulwich