Skip to content

Commit

Permalink
Merge pull request getpelican#1690 from ingwinlu/build_docs_travis
Browse files Browse the repository at this point in the history
Test docs via Travis
  • Loading branch information
justinmayer committed May 13, 2015
2 parents 5946313 + a45a917 commit 47e468c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
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
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:
Expand Down
3 changes: 0 additions & 3 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ typogrify
# To perform release
bumpr==0.2.0
wheel

# For docs theme
sphinx_rtd_theme
29 changes: 23 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 47e468c

Please sign in to comment.