1
0
Fork 0
forked from github/pelican

Merge pull request #1690 from ingwinlu/build_docs_travis

Test docs via Travis
This commit is contained in:
Justin Mayer 2015-05-13 18:37:19 +02:00
commit 47e468cebe
3 changed files with 30 additions and 18 deletions

View file

@ -1,8 +1,11 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
env:
- TOX_ENV=docs
- TOX_ENV=py27
- TOX_ENV=py33
- TOX_ENV=py34
addons:
apt_packages:
- pandoc
@ -10,13 +13,8 @@ before_install:
- sudo apt-get update -qq
- sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
install:
- pip install .
- pip install -r dev_requirements.txt
- pip install nose-cov
script: nosetests -sv --with-coverage --cover-package=pelican pelican
after_success:
- pip install coveralls
- coveralls
- pip install tox
script: tox -e $TOX_ENV
notifications:
irc:
channels:

View file

@ -10,6 +10,3 @@ typogrify
# To perform release
bumpr==0.2.0
wheel
# For docs theme
sphinx_rtd_theme

29
tox.ini
View file

@ -1,11 +1,28 @@
# This tests the unified codebase (py27, py33) of Pelican.
# depends on some external libraries that aren't released yet.
[tox]
envlist = py27,py33,py34
envlist = py27,py33,py34,docs
[testenv]
commands =
python -m unittest discover
basepython =
py27: python2.7
py33: python3.3
py34: python3.4
usedevelop=True
deps =
-rdev_requirements.txt
nose
nose-cov
coveralls
commands =
{envpython} --version
nosetests -sv --with-coverage --cover-package=pelican pelican
coveralls
[testenv:docs]
basepython = python2.7
deps =
sphinx
sphinx_rtd_theme
changedir = docs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html