Browse Source

Add support for tox

main
Julien Danjou 9 years ago
parent
commit
20da0f2aba
2 changed files with 21 additions and 5 deletions
  1. +2
    -5
      .travis.yml
  2. +19
    -0
      tox.ini

+ 2
- 5
.travis.yml View File

@@ -16,13 +16,10 @@ install:
- sudo npm install -g sass@0.5.0 requirejs@2.1 stylus@0.51 uglify-js@2.4.23 less@2.5.1 - sudo npm install -g sass@0.5.0 requirejs@2.1 stylus@0.51 uglify-js@2.4.23 less@2.5.1


# Python test requirements # Python test requirements
- pip install -r dev-req.txt
- pip install tox


before_script: before_script:
- export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/ - export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/


script: script:
# Source code sanity check
- flake8 hyde
# Run Python tests and generate coverage statistics
- nosetests
- tox

+ 19
- 0
tox.ini View File

@@ -0,0 +1,19 @@
[tox]
envlist = py27,pep8

[testenv]
usedevelop = True
# Needed for asciidoc
sitepackages = True
# Needed for asciidoc
passenv = PYTHONPATH
deps = -r{toxinidir}/dev-req.txt
commands = nosetests

[testenv:pep8]
deps = flake8
commands = flake8

[flake8]
exclude = .tox
show-source = true

Loading…
Cancel
Save