mirror of
https://github.com/adrienverge/yamllint.git
synced 2024-11-25 17:10:16 -06:00
734d5d5f73
Python 3.8 was released in October 2019.
25 lines
691 B
YAML
25 lines
691 B
YAML
---
|
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
|
language: python
|
|
python:
|
|
- 2.7
|
|
- 3.5
|
|
- 3.6
|
|
- 3.7
|
|
- 3.8
|
|
- nightly
|
|
install:
|
|
- pip install pyyaml coveralls flake8 flake8-import-order doc8
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
|
|
- pip install .
|
|
script:
|
|
- if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi
|
|
- 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
|