force os to be linux (+1 squashed commit)

Squashed commits:
[444c56d] no vars for you (+1 squashed commit)
Squashed commits:
[c7d1bf9] added pycodestyle environment to travis config
This commit is contained in:
Pedro Rodrigues 2016-07-26 20:46:55 +01:00
parent 8f6bee9196
commit 86c8abc485

View File

@ -45,6 +45,11 @@ matrix:
- TOXENV=py35
- BREW_INSTALL=python3
# Python Codestyle
- os: linux
python: 3.5
env: CODESTYLE=true
install:
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
@ -54,11 +59,18 @@ install:
fi
sudo pip install tox
fi
if [[ $CODESTYLE ]]; then
pip install pycodestyle
fi
script:
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
make
if [[ $CODESTYLE ]]; then
pycodestyle --ignore=E241,E501
else
make
fi
else
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
fi