fonttools/.travis/after_success.sh
2018-09-11 12:09:50 +02:00

17 lines
384 B
Bash
Executable File

#!/bin/bash
set -e
set -x
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
source .venv/bin/activate
fi
# upload coverage data to Codecov.io
[[ ${TOXENV} == *"-cov"* ]] && tox -e codecov
# if tagged commit, create distribution packages and deploy to PyPI
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "fonttools/fonttools" ] && [ "$BUILD_DIST" == true ]; then
tox -e pypi
fi