diff --git a/.travis.yml b/.travis.yml index f2fe8439c5f605ca7cc282b712c405b266bd09da..f85a871a6db2f94afb59ff1a1c406da271135321 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,9 +14,11 @@ script: after_success: - codeclimate-test-reporter - | - if [ "$TRAVIS_BRANCH" -eq "master" ]; then - pip install wheel twine - python setup.py bdist bdist_wheel - twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + if [ "$TRAVIS_BRANCH" == "master" ]; then + if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then + pip install wheel twine + python setup.py bdist bdist_wheel + twine upload -u $PYPI_USER -p $PYPI_PWD dist/* + fi fi