.travis.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. os: linux
  2. dist: xenial
  3. language: python
  4. jobs:
  5. include:
  6. - name: "Ubuntu / Python 3.6"
  7. stage: Testing
  8. python: 3.6
  9. - name: "Ubuntu / Python 3.7"
  10. stage: Testing
  11. python: 3.7
  12. - name: "Windows / Python 3.6"
  13. stage: Testing
  14. os: windows
  15. language: shell
  16. before_install:
  17. - choco install python --version 3.6.8
  18. env:
  19. - PATH=/c/Python36:/c/Python36/Scripts:$PATH
  20. - SKIP=check-executables-have-shebangs
  21. - name: "Windows / Python 3.7"
  22. stage: Testing
  23. os: windows
  24. language: shell
  25. before_install:
  26. - choco install python --version 3.7.8
  27. env:
  28. - PATH=/c/Python37:/c/Python37/Scripts:$PATH
  29. - SKIP=check-executables-have-shebangs
  30. - name: "Ubuntu / Python 3.7"
  31. stage: Deployment
  32. if: type != pull_request AND (branch = master OR tag IS present)
  33. python: 3.7
  34. before_deploy:
  35. - touch html/.nojekyll
  36. - cp assets/gh-pages-redirect.html html/index.html
  37. deploy:
  38. # Deploy to PyPI
  39. - provider: pypi
  40. username: "__token__"
  41. password:
  42. secure: "0bFhY80KT5zp5wpsQwmBdHNvrC1aXnCUnL268UBb5bcVrTQ/cVr08CPVEZLefRU96CCqCZHCQPh1iP9DCtPEszB3XI0pVydoNJ9Fei9ccHI6bJBtfpLnTwlyygiBiTT3uNlal+/+videWqhDXAs2EHZAQn4L41Na6h1pHBoTu+V8KIJinNJccgiUXeeHdDc4lWCVKU0GfeKtzvgmFZq9B1w7jo+VnOQFKYH3rS80u1xkTrWNiVb3vdt+36PHssNXv5XI9kULsE+ofSdKIwYd7zGxs3ouw+LYhEM6QpDp1ERITAPWhdrY6DTTVdatnClTlzvxRMiqbeKmx/cYIx1x2aXqGxQo0UIcjK2N647ZG6lQAmJnRBc71CJvzGOFQQ+PNnlRlUcOmhnqr8K4bHDhe6Cf1PAFW6SCZvZ8ruXRV726FhRqMzmE/fJwtOY97F0BHJWwBAjbTdDM0J9Hph68YjkMcB96/bRTvGqkwVZTVqPtGppa3uRX2+ljt9pFY3j/jsk77mTYoY5VJrDB8lQSK7dzn8U/vg6q7lbRA5QfYXVIc77/7w29BFgVKv418LlfEh9zlq2/mB0+EX9BGEtEFNMEDzmXvJpEMQ2isDhfACKLO6B8opkfNEgUKhEpUBOTKf0VNSTVdQy1VL+jnXk7SzHo6ncb7PCMMK/yWmlCsvc="
  43. distributions: "sdist bdist_wheel"
  44. skip_existing: true
  45. on:
  46. branch: master
  47. repo: Holzhaus/sphinx-multiversion
  48. tags: true
  49. # Deploy to Github Releases
  50. - provider: releases
  51. token:
  52. secure: "tAwp3NTqbvig1wU0hwkN7aWOAQYnpS12zsAlBc/ud05cYrjrBIjjFltX/1C0tgxxxJ11zdAhTjgUfYFrWbRXJ5hHptyD8fTa8RXfJZ2KuTx44aEHSyNHtl8YbwlXXr9hGjhrUHUulNghpFCAwNgg6oONbocQ3teW6maO7ByLUmO/RbNnligK1iQW6GPHovOg1iTbsZLVhriP2e2/JFRxq5rdnxArNLzwLhg8L4QAuc6YX3gnI1Z2xuBtpgQhNfL5S+hMuKOwONpdMQDYgXD7QbPA0pqSYQRf81vd+/FtZqNnHHku0POsoLLMkscalXxa1AbznvH9vg9nwO0J20XNZ1Mg6BFLpDwPzqLhCAwmeFcz+k78m+3x9bIhS27ps0XCgg0VxjM4Rvaabfm7J9h1aIteZf4oGS+1Er8fK6ejOeGI+tZu/5YXDhpS6hyK6gXey7Ep3SGF5oqrcu80gBrCGkWXrADMogarL6RbcZV2vrYkm5kBorcUA4s3nU2fV5UUnCg83fdlY70kmrNt3Im83ndSH3jOyTDXITjHCDN6+GFjd1eP0h8tcwiGPtVs2JGolSmqq/AzjDqY2CfgwccBDg6MF4gbcgJQdzZ11j/5cH9SNoHN6/V4869vO28XbwTKqbgsKpuajmbKVEqIlGTi2zylgzNbxtySTL0tnZvyO4w="
  53. name: "$TRAVIS_TAG"
  54. release_notes: "Release $TRAVIS_TAG"
  55. draft: false
  56. skip_cleanup: true
  57. file_glob: true
  58. file: dist/*
  59. overwrite: true
  60. on:
  61. branch: master
  62. repo: Holzhaus/sphinx-multiversion
  63. tags: true
  64. # Deploy documentation
  65. - provider: pages
  66. skip_cleanup: true
  67. keep_history: false
  68. token: $GITHUB_TOKEN
  69. local_dir: html
  70. on:
  71. branch: master
  72. repo: Holzhaus/sphinx-multiversion
  73. stages:
  74. - Testing
  75. - Deployment
  76. cache:
  77. pip: true
  78. install:
  79. - python -m pip install pre-commit setuptools wheel
  80. - python -m pip install -r requirements.txt
  81. - python setup.py install
  82. before_script:
  83. - pre-commit run --all-files --show-diff-on-failure
  84. - python -m unittest --verbose
  85. script:
  86. - mkdir html
  87. - git fetch --all
  88. - python -I -m sphinx_multiversion -W docs html
  89. - python setup.py build sdist bdist_wheel