diff --git a/.travis.yml b/.travis.yml index 8976ec8a..e745f7dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,11 @@ language: python matrix: include: - os: linux - sudo: required + sudo: false python: 2.7 env: TOX_ENV=docs - os: linux - sudo: required + sudo: false python: 2.7 env: TOX_ENV=lint - os: linux @@ -20,17 +20,17 @@ matrix: install: - git submodule update --init --recursive - - sudo pip install -U pip setuptools tox + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip install -U tox; else pip install -U tox; fi # temporary hook to fix issue with gcc-pic32 - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0; fi + - if [[ "$TOX_ENV" == "py27" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq lib32z1 lib32ncurses5 lib32bz2-1.0; fi script: - tox -e $TOX_ENV after_success: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tox -e coverage; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash); fi + - if [[ "$TOX_ENV" == "py27" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tox -e coverage; fi + - if [[ "$TOX_ENV" == "py27" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash <(curl -s https://codecov.io/bash); fi notifications: slack: diff --git a/tests/commands/test_lib.py b/tests/commands/test__lib.py similarity index 100% rename from tests/commands/test_lib.py rename to tests/commands/test__lib.py