2
0

.travis.yml 1.4 KB

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