qutebrowser/.travis.yml
Florian Bruhin 513e4d5236 Switch to flake8-docstrings with pydocstyle
We used to use flake8-pep257 because docstrings claims no codes are ignorable
(which is wrong). However, that doesn't work with pydocstyle, so we had a
separate pydocstyle environment (and flake8-pep257 to check tests with relaxed
rules).

Now we only use flake8-docstrings + pydocstyle (which it switches to if it's
available, even though it still depends on pep257), and drop the pydocstyle tox
env.

As soon as flake8-docstrings is updated to drop the (unneeded) pep257
dependency, we can drop it as well.
2016-02-19 18:05:51 +01:00

68 lines
1.3 KiB
YAML

# So we get Ubuntu Trusty - using "dist: trusty" breaks OS X.
sudo: required
dist: trusty
os:
- linux
- osx
env:
global:
- PATH=/home/travis/bin:/home/travis/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
matrix:
- TESTENV=py35
- TESTENV=py34-cov
- TESTENV=unittests-nodisp
- TESTENV=misc
- TESTENV=vulture
- TESTENV=flake8
- TESTENV=pyroma
- TESTENV=check-manifest
- TESTENV=pylint
- TESTENV=eslint
# Not really, but this is here so we can do stuff by hand.
language: c
cache:
directories:
- $HOME/.cache/pip
- $HOME/build/The-Compiler/qutebrowser/.cache
install:
- python scripts/dev/ci_install.py
script:
- tox -e $TESTENV -- -v --cov-report term tests
after_success:
- '[[ $TESTENV == *-cov ]] && codecov -e TESTENV -X gcov'
matrix:
exclude:
- os: linux
env: TESTENV=py35
- os: osx
env: TESTENV=py34-cov
- os: osx
env: TESTENV=unittests-nodisp
- os: osx
env: TESTENV=misc
- os: osx
env: TESTENV=vulture
- os: osx
env: TESTENV=flake8
- os: osx
env: TESTENV=pyroma
- os: osx
env: TESTENV=check-manifest
- os: osx
env: TESTENV=pylint
- os: osx
env: TESTENV=eslint
notifications:
webhooks:
- https://buildtimetrend.herokuapp.com/travis