|
|
@ -1,17 +1,19 @@
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
|
|
|
language: python
|
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
python:
|
|
|
|
- 2.7
|
|
|
|
- 2.7
|
|
|
|
- 3.4
|
|
|
|
- 3.4
|
|
|
|
- 3.5
|
|
|
|
- 3.5
|
|
|
|
- 3.6
|
|
|
|
- 3.6
|
|
|
|
|
|
|
|
- 3.7
|
|
|
|
- nightly
|
|
|
|
- nightly
|
|
|
|
install:
|
|
|
|
install:
|
|
|
|
- pip install pyyaml coveralls flake8 flake8-import-order doc8
|
|
|
|
- pip install pyyaml coveralls flake8 flake8-import-order doc8
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
|
|
|
|
- pip install .
|
|
|
|
- pip install .
|
|
|
|
script:
|
|
|
|
script:
|
|
|
|
- flake8 .
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi
|
|
|
|
- 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
|
|
|
|