You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 2.6
|
|
|
|
- 2.7
|
|
|
|
- 3.3
|
|
|
|
- 3.4
|
|
|
|
- 3.5
|
|
|
|
- 3.6
|
|
|
|
- nightly
|
|
|
|
install:
|
|
|
|
- pip install pyyaml flake8 flake8-import-order coveralls sphinx
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
|
|
|
|
- pip install .
|
|
|
|
script:
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi
|
|
|
|
# Because of https://github.com/PyCQA/flake8-import-order/issues/149
|
|
|
|
# otherwise tests fail with Python 3.6:
|
|
|
|
- pip uninstall --yes enum34
|
|
|
|
- yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
|
|
|
- coverage run --source=yamllint setup.py test
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then
|
|
|
|
python setup.py build_sphinx;
|
|
|
|
fi
|
|
|
|
after_success:
|
|
|
|
coveralls
|