2016-01-12 14:16:39 -06:00
|
|
|
---
|
|
|
|
language: python
|
|
|
|
python:
|
2017-07-04 15:07:32 -05:00
|
|
|
- 2.6
|
2016-01-12 14:16:39 -06:00
|
|
|
- 2.7
|
|
|
|
- 3.4
|
|
|
|
- 3.5
|
2017-06-28 08:03:24 -05:00
|
|
|
- 3.6
|
2016-01-12 14:16:39 -06:00
|
|
|
- nightly
|
|
|
|
install:
|
2018-10-02 11:55:07 -05:00
|
|
|
- pip install pyyaml flake8 flake8-import-order
|
2017-07-04 15:07:32 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
|
2018-10-02 11:55:07 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pip install coveralls; fi
|
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:
|
2017-07-04 15:07:32 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi
|
2016-11-18 04:55:09 -06:00
|
|
|
- yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
2018-10-02 11:55:07 -05:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then
|
|
|
|
coverage run --source=yamllint setup.py test;
|
|
|
|
else
|
|
|
|
python setup.py test;
|
|
|
|
fi
|
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
|