travis: Use tox to run both tests, docs build, and flake8 linting
This commit is contained in:
parent
815b490206
commit
daf07a8edc
17
.travis.yml
17
.travis.yml
@ -1,21 +1,22 @@
|
|||||||
language: python
|
language: python
|
||||||
|
|
||||||
|
env:
|
||||||
|
- TOX_ENV=py27
|
||||||
|
- TOX_ENV=docs
|
||||||
|
- TOX_ENV=flake8
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "wget -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -"
|
- "wget -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -"
|
||||||
- "sudo wget -O /etc/apt/sources.list.d/mopidy.list http://apt.mopidy.com/mopidy.list"
|
- "sudo wget -O /etc/apt/sources.list.d/mopidy.list http://apt.mopidy.com/mopidy.list"
|
||||||
- "sudo apt-get update || true"
|
- "sudo apt-get update || true"
|
||||||
- "sudo apt-get install $(apt-cache depends mopidy | awk '$2 !~ /mopidy|python:any/ {print $2}')"
|
- "sudo apt-get install mopidy graphviz-dev"
|
||||||
- "pip install coveralls flake8"
|
- "pip install tox"
|
||||||
|
|
||||||
before_script:
|
|
||||||
- "rm $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/no-global-site-packages.txt"
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "flake8 $(find . -iname '*.py')"
|
- "tox -e $TOX_ENV"
|
||||||
- "nosetests --with-coverage --cover-package=mopidy"
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- "coveralls"
|
- "if [ $TOX_ENV == 'py27' ]; then pip install coveralls; coveralls; fi"
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user