/
.travis.yml
26 lines (26 loc) · 870 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
branches:
only:
- development
language: python
python:
- 3.4
- 3.5
- 3.6
cache:
pip: true
install:
- pip install six wheel setuptools # for Travis Py3.4
- find requirements -name '*.txt' | xargs -I {} pip install -r {}
- pip install codecov pytest-travis-fold
- ./setup.py develop
script:
- python setup.py check --strict --metadata --restructuredtext
- check-manifest .
- flake8 src tests setup.py
# don't run isort in Py3.4 - typing is an external package, not in core, leading to conflict
- python -V | cut -d' ' -f 2 | cut -d . -f 1,2 | grep -vq '3.4' && isort --verbose --check-only --diff --recursive src tests setup.py || echo 'Skipping iSort'
- mypy src tests
- pylint src tests setup.py
- py.test --cov-report= --cov=\. -vv tests
after_success:
- coverage combine --append && coverage report && coverage html && codecov