1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash set -e -x if [[ "${BUILD}" != *tests* ]]; then echo "Skipping tests." exit 0 fi if [ "${TRAVIS_OS_NAME}" == "osx" ]; then PYENV_ROOT="$HOME/.pyenv" PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" fi python setup.py test