mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-24 20:14:13 +03:00
Merge pull request #1820 from wiredfool/travis_docs
Fix doc building on travis
This commit is contained in:
commit
97c1f74ac9
10
.travis.yml
10
.travis.yml
|
@ -24,7 +24,6 @@ install:
|
||||||
- "travis_retry pip install cffi"
|
- "travis_retry pip install cffi"
|
||||||
- "travis_retry pip install nose"
|
- "travis_retry pip install nose"
|
||||||
- "travis_retry pip install check-manifest"
|
- "travis_retry pip install check-manifest"
|
||||||
- "travis_retry pip install Sphinx"
|
|
||||||
# Pyroma tests sometimes hang on PyPy and Python 2.6; skip for those
|
# Pyroma tests sometimes hang on PyPy and Python 2.6; skip for those
|
||||||
- if [ $TRAVIS_PYTHON_VERSION != "pypy" && $TRAVIS_PYTHON_VERSION != "2.6" ]; then travis_retry pip install pyroma; fi
|
- if [ $TRAVIS_PYTHON_VERSION != "pypy" && $TRAVIS_PYTHON_VERSION != "2.6" ]; then travis_retry pip install pyroma; fi
|
||||||
|
|
||||||
|
@ -34,6 +33,9 @@ install:
|
||||||
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
|
- if [ "$TRAVIS_PYTHON_VERSION" == "3.2" ]; then travis_retry pip install coverage==3.7.1; fi
|
||||||
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
|
- if [ "$TRAVIS_PYTHON_VERSION" != "3.2" ]; then travis_retry pip install coverage; fi
|
||||||
|
|
||||||
|
# docs only on python 2.7
|
||||||
|
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then travis_retry pip install -r requirements.txt ; fi
|
||||||
|
|
||||||
# clean checkout for manifest
|
# clean checkout for manifest
|
||||||
- mkdir /tmp/check-manifest && cp -a . /tmp/check-manifest
|
- mkdir /tmp/check-manifest && cp -a . /tmp/check-manifest
|
||||||
|
|
||||||
|
@ -51,9 +53,9 @@ script:
|
||||||
- if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage run --append --include=PIL/* selftest.py; fi
|
- if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage run --append --include=PIL/* selftest.py; fi
|
||||||
- if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage run --append --include=PIL/* -m nose -vx Tests/test_*.py; fi
|
- if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage run --append --include=PIL/* -m nose -vx Tests/test_*.py; fi
|
||||||
- pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd
|
- pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd
|
||||||
# Sphinx
|
|
||||||
- make install
|
# Docs
|
||||||
- pushd docs; make html; make linkcheck; popd
|
- if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then make install && make doccheck; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# gather the coverage data
|
# gather the coverage data
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -26,6 +26,10 @@ coverage:
|
||||||
doc:
|
doc:
|
||||||
$(MAKE) -C docs html
|
$(MAKE) -C docs html
|
||||||
|
|
||||||
|
doccheck:
|
||||||
|
$(MAKE) -C docs html
|
||||||
|
$(MAKE) -C docs linkcheck
|
||||||
|
|
||||||
docserve:
|
docserve:
|
||||||
cd docs/_build/html && python -mSimpleHTTPServer 2> /dev/null&
|
cd docs/_build/html && python -mSimpleHTTPServer 2> /dev/null&
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user