.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: python
  2. cache: pip
  3. matrix:
  4. include:
  5. - os: linux
  6. dist: trusty
  7. python: '2.6'
  8. - os: linux
  9. dist: trusty
  10. python: '2.7'
  11. - os: linux
  12. dist: trusty
  13. python: '3.2'
  14. - os: linux
  15. dist: trusty
  16. python: '3.3'
  17. - os: linux
  18. dist: trusty
  19. python: '3.4'
  20. - os: linux
  21. dist: trusty
  22. python: '3.5'
  23. - os: linux
  24. dist: trusty
  25. python: '3.6'
  26. - os: linux
  27. dist: xenial
  28. sudo: true
  29. python: '3.7'
  30. - os: linux
  31. dist: trusty
  32. python: 'nightly'
  33. - os: linux
  34. dist: trusty
  35. python: 'pypy'
  36. - os: linux
  37. dist: trusty
  38. python: 'pypy3'
  39. install:
  40. - pip install codecov
  41. - pip install -r requirements.txt -r devel-requirements.txt
  42. - pip install -e .
  43. script:
  44. - PYTHONPATH=.:$PYTHONPATH python tests/__main__.py
  45. - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then (make -C docs html); fi
  46. - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then (make -C docs html); fi
  47. - if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then (make -C docs html); fi
  48. - if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then (make -C docs html); fi
  49. - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then (make -C docs html); fi
  50. - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then (make -C docs html); fi
  51. - if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then (make -C docs html); fi
  52. - if [[ $TRAVIS_PYTHON_VERSION == 'nightly' ]]; then (make -C docs html); fi
  53. after_success:
  54. - PYTHONPATH=.:$PYTHONPATH coverage run --omit=*test* tests/__main__.py
  55. - codecov