forked from pdoc3/pdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (47 loc) · 1.25 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
os: linux
dist: bionic
language: python
cache:
pip: true
branches:
only:
- master
# Tags
- /^(\d+\.)+\d+(\.\S+)?$/
jobs:
fast_finish: true
include:
- python: '3.6'
- python: '3.7'
- python: '3.8'
name: 'Lint, Coverage'
before_script:
- pip install flake8 coverage mypy
- wget -O/tmp/pandoc.deb https://github.com/jgm/pandoc/releases/download/2.10/pandoc-2.10-1-amd64.deb && sudo dpkg -i /tmp/pandoc.deb
addons:
apt:
packages:
- texlive-xetex # test_pdf_pandoc
- lmodern # test_pdf_pandoc
- texlive-fonts-recommended # test_pdf_pandoc
script:
- find -name '*.md' | xargs .github/lint-markdown.sh
- flake8
- mypy pdoc
- time catchsegv coverage run setup.py test
- PDOC_TEST_PANDOC=1 python -m unittest pdoc.test.CliTest.test_pdf_pandoc
after_success:
- bash <(curl -s https://codecov.io/bash)
- python: '3.8'
name: 'Docs'
stage: deploy
script:
- doc/build.sh
after_success:
- if [ "$TRAVIS_BRANCH" = "$TRAVIS_TAG" ]; then bash .github/deploy-gh-pages.sh; fi
before_install:
- set -e
install:
- pip install .
script:
- catchsegv python setup.py test