-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
22 lines (22 loc) · 676 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
language: python
python:
- "2.7"
branches:
only:
- master
- develop
install:
- pip install --upgrade pip
- pip install -r requirements.txt
script:
# Run Python linting / https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
- flake8 . --ignore=C901,E501,E265,E266,E402,E722 --exclude=tests --count
# Make sure that the README is formatted properly
- python setup.py check --restructuredtext --strict --metadata
# Run reStructuredText linter
- rst-lint README.md CHANGELOG.md LICENSE doc/Commands.md
# Run build and test
- python setup.py build
- python setup.py test
- python setup.py sdist bdist_wheel
- twine check dist/*