mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #1690 from ingwinlu/build_docs_travis
Test docs via Travis
This commit is contained in:
commit
47e468cebe
3 changed files with 30 additions and 18 deletions
16
.travis.yml
16
.travis.yml
|
|
@ -1,8 +1,11 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
- "3.3"
|
env:
|
||||||
- "3.4"
|
- TOX_ENV=docs
|
||||||
|
- TOX_ENV=py27
|
||||||
|
- TOX_ENV=py33
|
||||||
|
- TOX_ENV=py34
|
||||||
addons:
|
addons:
|
||||||
apt_packages:
|
apt_packages:
|
||||||
- pandoc
|
- pandoc
|
||||||
|
|
@ -10,13 +13,8 @@ before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
- sudo locale-gen fr_FR.UTF-8 tr_TR.UTF-8
|
||||||
install:
|
install:
|
||||||
- pip install .
|
- pip install tox
|
||||||
- pip install -r dev_requirements.txt
|
script: tox -e $TOX_ENV
|
||||||
- pip install nose-cov
|
|
||||||
script: nosetests -sv --with-coverage --cover-package=pelican pelican
|
|
||||||
after_success:
|
|
||||||
- pip install coveralls
|
|
||||||
- coveralls
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,3 @@ typogrify
|
||||||
# To perform release
|
# To perform release
|
||||||
bumpr==0.2.0
|
bumpr==0.2.0
|
||||||
wheel
|
wheel
|
||||||
|
|
||||||
# For docs theme
|
|
||||||
sphinx_rtd_theme
|
|
||||||
|
|
|
||||||
29
tox.ini
29
tox.ini
|
|
@ -1,11 +1,28 @@
|
||||||
# This tests the unified codebase (py27, py33) of Pelican.
|
|
||||||
# depends on some external libraries that aren't released yet.
|
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py33,py34
|
envlist = py27,py33,py34,docs
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
basepython =
|
||||||
python -m unittest discover
|
py27: python2.7
|
||||||
|
py33: python3.3
|
||||||
|
py34: python3.4
|
||||||
|
usedevelop=True
|
||||||
deps =
|
deps =
|
||||||
-rdev_requirements.txt
|
-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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue