Utilize tox in travis-ci

Utilize tox in travis-ci to simplify its configuration.

Signed-off-by: Satoru SATOH <satoru.satoh@gmail.com>
pull/320/head
Satoru SATOH 5 years ago
parent 7798a71009
commit 61f606da8e

@ -12,17 +12,9 @@ env:
- REMOVE_LOCALES=false - REMOVE_LOCALES=false
- REMOVE_LOCALES=true - REMOVE_LOCALES=true
install: install:
- pip install pyyaml coveralls flake8 flake8-import-order doc8 - pip install tox-travis
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi
- pip install .
- if [[ $REMOVE_LOCALES = "true" ]]; then sudo rm -rf /usr/lib/locale/*; fi - if [[ $REMOVE_LOCALES = "true" ]]; then sudo rm -rf /usr/lib/locale/*; fi
script: script:
- if [[ $TRAVIS_PYTHON_VERSION != nightly ]]; then flake8 .; fi - tox
- 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: after_success:
coveralls coveralls

Loading…
Cancel
Save