diff --git a/.travis.yml b/.travis.yml index 80506f2..39f7a27 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,14 +9,19 @@ python: - 3.6 - nightly install: - - pip install pyyaml flake8 flake8-import-order coveralls + - pip install pyyaml 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 - pip install . script: - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi - yamllint --strict $(git ls-files '*.yaml' '*.yml') - - coverage run --source=yamllint setup.py test + - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then + coverage run --source=yamllint setup.py test; + else + python setup.py test; + fi - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then python setup.py build_sphinx; fi