forked from manubot/manubot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.15 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
dist: bionic
sudo: true
language: python
python:
- "3.6"
- "3.7"
- "3.8"
cache:
- pip
before_install:
- wget --quiet https://github.com/jgm/pandoc/releases/download/2.8/pandoc-2.8-1-amd64.deb
- sudo dpkg --install pandoc-2.8-1-amd64.deb
install:
- pip install ".[all]"
- python setup.py sdist bdist_wheel
script:
- pytest -rs --color=yes
# if the following command fails, run `black .` locally to reformat the code.
# ensure your local version of black matches the version installed on Travis,
# which will usually be the latest version from https://pypi.org/project/black/
- black --check --diff .
- flake8
# temporary workaround for portray "Module not found" error https://git.io/JeR9C
- export PYTHONPATH=.
- portray as_html --overwrite --output_dir=docs
deploy:
- provider: pypi
user: __token__
password: $PYPI_PASSWORD
on:
python: '3.6'
repo: manubot/manubot
tags: true
distributions: sdist bdist_wheel
- provider: script
script: bash ci/deploy-docs.sh
skip_cleanup: true
on:
python: "3.7"
repo: manubot/manubot
branch: master
condition: $TRAVIS_EVENT_TYPE = "push"