2020-03-11 13:12:57 +01:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 3.6
|
|
|
|
- 3.7
|
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
|
|
|
|
install:
|
2020-03-11 13:43:51 +01:00
|
|
|
- python -m pip install pre-commit setuptools wheel
|
2020-03-11 13:12:57 +01:00
|
|
|
- python -m pip install -r requirements.txt
|
|
|
|
- python setup.py install
|
|
|
|
|
|
|
|
before_script:
|
2020-03-11 13:43:51 +01:00
|
|
|
- pre-commit run --all-files
|
2020-03-11 13:12:57 +01:00
|
|
|
script:
|
|
|
|
- mkdir html
|
2020-03-11 14:19:25 +01:00
|
|
|
- sphinx-multiversion -W docs html
|
2020-03-11 13:12:57 +01:00
|
|
|
- python setup.py build sdist bdist_wheel
|
2020-03-11 13:58:04 +01:00
|
|
|
|
|
|
|
# Deployment
|
2020-03-11 14:17:11 +01:00
|
|
|
before_deploy:
|
|
|
|
- touch html/.nojekyll
|
|
|
|
- cp assets/gh-pages-redirect.html html/index.html
|
2020-03-11 13:58:04 +01:00
|
|
|
deploy:
|
|
|
|
# Deploy documentation
|
|
|
|
- provider: pages
|
|
|
|
skip_cleanup: true
|
2020-03-11 14:21:36 +01:00
|
|
|
keep_history: false
|
2020-03-11 13:58:04 +01:00
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
local_dir: html
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
repo: Holzhaus/sphinx-multiversion
|
2020-03-11 14:42:11 +01:00
|
|
|
python: 3.7
|