2016-01-12 14:16:39 -06:00
|
|
|
---
|
2018-12-10 10:06:14 -06:00
|
|
|
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
|
2016-01-12 14:16:39 -06:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 2.7
|
|
|
|
- 3.5
|
2017-06-28 08:03:24 -05:00
|
|
|
- 3.6
|
2018-12-10 10:06:14 -06:00
|
|
|
- 3.7
|
2020-01-03 02:26:09 -06:00
|
|
|
- 3.8
|
2016-01-12 14:16:39 -06:00
|
|
|
- nightly
|
|
|
|
install:
|
2018-12-08 03:55:15 -06:00
|
|
|
- pip install pyyaml coveralls flake8 flake8-import-order doc8
|
2018-04-06 02:30:28 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
|
2016-01-12 14:16:39 -06:00
|
|
|
- pip install .
|
|
|
|
script:
|
2018-12-10 10:06:14 -06:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi
|
2018-12-08 03:55:15 -06:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then doc8 $(git ls-files '*.rst'); fi
|
2016-11-18 04:55:09 -06:00
|
|
|
- yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
2018-11-24 03:29:07 -06:00
|
|
|
- coverage run --source=yamllint setup.py test
|
2017-11-04 09:57:39 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then
|
|
|
|
python setup.py build_sphinx;
|
|
|
|
fi
|
2016-01-12 14:16:39 -06:00
|
|
|
after_success:
|
|
|
|
coveralls
|