|
|
@ -1,26 +1,19 @@
|
|
|
|
---
|
|
|
|
---
|
|
|
|
language: python
|
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
python:
|
|
|
|
- 2.6
|
|
|
|
|
|
|
|
- 2.7
|
|
|
|
- 2.7
|
|
|
|
- 3.4
|
|
|
|
- 3.4
|
|
|
|
- 3.5
|
|
|
|
- 3.5
|
|
|
|
- 3.6
|
|
|
|
- 3.6
|
|
|
|
- nightly
|
|
|
|
- nightly
|
|
|
|
install:
|
|
|
|
install:
|
|
|
|
- pip install pyyaml flake8 flake8-import-order
|
|
|
|
- pip install pyyaml coveralls flake8 flake8-import-order
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
|
|
|
|
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then pip install coveralls; fi
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi
|
|
|
|
- flake8 .
|
|
|
|
- yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
|
|
|
- yamllint --strict $(git ls-files '*.yaml' '*.yml')
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then
|
|
|
|
- coverage run --source=yamllint setup.py test
|
|
|
|
coverage run --source=yamllint setup.py test;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
python setup.py test;
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then
|
|
|
|
python setup.py build_sphinx;
|
|
|
|
python setup.py build_sphinx;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|