mirror of
https://github.com/httpie/cli.git
synced 2024-11-23 00:03:18 +01:00
Fix travis.yml syntax
This commit is contained in:
parent
7917f1b40c
commit
bf73b5701e
36
.travis.yml
36
.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
|
||||
|
Loading…
Reference in New Issue
Block a user