1
0
mirror of https://github.com/httpie/cli.git synced 2025-05-17 22:23:06 +02:00

Fix travis.yml syntax

This commit is contained in:
Jakub Roztocil 2018-07-12 21:23:32 +02:00
parent 7917f1b40c
commit bf73b5701e

View File

@ -44,28 +44,28 @@ matrix:
env: CODESTYLE_ONLY=true env: CODESTYLE_ONLY=true
install: install:
- | - |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
sudo pip install tox sudo pip install tox
if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then if [[ -n "$BREW_PYTHON_PACKAGE" ]]; then
brew install "$BREW_PYTHON_PACKAGE" brew install "$BREW_PYTHON_PACKAGE"
fi fi
fi fi
script: script:
- | - |
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
if [[ $CODESTYLE_ONLY ]]; then if [[ $CODESTYLE_ONLY ]]; then
make pycodestyle make pycodestyle
else else
make test make test
fi fi
else else
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV" PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
fi fi
after_success: after_success:
- | - |
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
make coveralls make coveralls
fi fi
notifications: notifications:
webhooks: webhooks:
# options: [always|never|change] default: always # options: [always|never|change] default: always