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

See issue https://github.com/PyCQA/flake8-import-order/issues/149
pull/90/head
Adrien Vergé 7 years ago
parent 22e792a433
commit 8b9eab33bf

@ -14,6 +14,9 @@ install:
- pip install . - pip install .
script: script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi - 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') - yamllint --strict $(git ls-files '*.yaml' '*.yml')
- coverage run --source=yamllint setup.py test - coverage run --source=yamllint setup.py test
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then

Loading…
Cancel
Save