1#!/bin/bash 2 3set -e 4set -x 5 6if [ "$TRAVIS_OS_NAME" == "osx" ]; then 7 source .venv/bin/activate 8fi 9 10# upload coverage data to Codecov.io 11[[ ${TOXENV} == *"-cov"* ]] && tox -e codecov 12 13# if tagged commit, create distribution packages and deploy to PyPI 14if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "fonttools/fonttools" ] && [ "$BUILD_DIST" == true ]; then 15 tox -e pypi 16fi 17