forked from numpy/numpydoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (40 loc) · 1.27 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
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
dist: xenial
sudo: false
matrix:
include:
- python: 3.7
- python: 3.6
env: SPHINX_SPEC="==2.1.0" SPHINXOPTS=""
- python: 3.5
env: SPHINX_SPEC="==1.6.5" SPHINXOPTS=""
cache:
directories:
- $HOME/.cache/pip
before_install:
- sudo apt-get install texlive texlive-latex-extra latexmk dvipng
- pip install --upgrade pip setuptools # Upgrade pip and setuptools to get ones with `wheel` support
- pip install pytest pytest-cov pydocstyle numpy matplotlib sphinx${SPHINX_SPEC} codecov
script:
- |
python setup.py sdist
cd dist
pip install numpydoc* -v
- pytest -v --pyargs numpydoc
# Making sure the command line options work
- python -m numpydoc numpydoc.tests.test_main._capture_stdout
- echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
- python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
- echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
- pydocstyle --convention numpy ../doc/example.py
# Build documentation
- |
cd ../doc
make SPHINXOPTS=$SPHINXOPTS html
make SPHINXOPTS=$SPHINXOPTS latexpdf
after_script:
- |
cd ../dist
codecov