From bf73b5701e7f6799ebaac73bc4443c6c22ad8817 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Thu, 12 Jul 2018 21:23:32 +0200 Subject: [PATCH] Fix travis.yml syntax --- .travis.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a844bb8..f71e4c64 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,28 +44,28 @@ matrix: env: CODESTYLE_ONLY=true install: - | - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then - sudo pip install tox - if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then - brew install "$BREW_PYTHON_PACKAGE" - fi - fi + if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + sudo pip install tox + if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then + brew install "$BREW_PYTHON_PACKAGE" + fi + fi script: - | - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then - if [[ $CODESTYLE_ONLY ]]; then - make pycodestyle - else - make test - fi - else - PATH="/usr/local/bin:$PATH" tox -e "$TOXENV" - fi + if [[ $TRAVIS_OS_NAME == 'linux' ]]; then + if [[ $CODESTYLE_ONLY ]]; then + make pycodestyle + else + make test + fi + else + PATH="/usr/local/bin:$PATH" tox -e "$TOXENV" + fi after_success: - | - if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then - make coveralls - fi + if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then + make coveralls + fi notifications: webhooks: # options: [always|never|change] default: always