CI: Fix failing tests for Python 3.6 because of flake8-import-order

See issue https://github.com/PyCQA/flake8-import-order/issues/149
This commit is contained in:
Adrien Vergé 2018-02-21 13:34:08 +01:00
parent 22e792a433
commit 8b9eab33bf

View File

@ -14,6 +14,9 @@ install:
- 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