pelican/tox.ini
David Alfonso 79434f9937 Add pandoc2 support to travis/tox
- Install pandoc2 in travis and decide whether to use it or not in tox.
- A symbolic link is created in tox, due to not being able to make
  setenv work like this: `setenv = PATH={toxinidir}:{env:PATH}`
- Install pandoc2 only on pyxx-pandoc2
- Add new inclusion to travis matrix combination
- A build failed with InsecurePlatformWarning on Travis.
2018-08-10 16:01:16 +02:00

49 lines
945 B
INI

[tox]
envlist =
docs
flake8
py{27,34,35,36}
py{27,34,35,36}-pandoc2
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
passenv = *
usedevelop=True
deps =
-rrequirements/test.pip
nose
nose-cov
coveralls
pygments==2.1.3
whitelist_externals=ln
commands =
pandoc2: {toxinidir}/scripts/install-pandoc2.sh /tmp
pandoc2: ln -fs /tmp/pandoc2/bin/pandoc {envbindir}/pandoc
{envpython} --version
nosetests -sv --with-coverage --cover-package=pelican pelican
- coveralls
[testenv:docs]
basepython = python2.7
deps =
-rrequirements/docs.pip
changedir = docs
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[flake8]
application-import-names = pelican
import-order-style = cryptography
[testenv:flake8]
basepython = python2.7
deps =
-rrequirements/style.pip
commands =
flake8 --version
flake8 pelican