forked from PyCQA/modernize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
22 lines (22 loc) · 684 Bytes
/
.travis.yml
File metadata and controls
22 lines (22 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# command to run tests
script: coverage run --branch --source=libmodernize setup.py test
# Ensure dependencies are installed
install:
- pip install .
- pip install 'coveralls==0.4.2'
- pip install flake8
- pip install 'six >= 1.9.0'
after_success:
coveralls
sudo: false