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