tox/travis stuff. making testing more uniform.

This commit is contained in:
Ivan Malison 2015-01-07 17:57:04 -08:00
parent c2b03afe55
commit ca66e74099
6 changed files with 35 additions and 89 deletions

View file

@ -1,32 +1,24 @@
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "pypy"
- "pypy3"
env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=pypy
- TOXENV=pypy3
- TOXENV=lint
sudo: false
install:
- travis_retry pip install -r test_requirements.txt
- travis_retry pip install coveralls
script: coverage run --source=pylast ./tests/test_pylast.py
script: tox
after_success:
- coveralls
- travis_retry pip install scrutinizer-ocular
- ocular
after_script:
- coverage report
- ./check.sh
- pip install clonedigger
- clonedigger pylast
- grep "Clones detected" output.html
- grep "lines are duplicates" output.html
- "if [ $TOXENV == 'py27' ]; then pip install coveralls; coveralls; fi"
- "if [ $TOXENV == 'py27' ]; then travis_retry pip install scrutinizer-ocular; ocular; fi"
- "if [ $TOXENV == 'py27' ]; then travis_retry pip install scrutinizer-ocular; ocular; fi"
env:
global: