language: python sudo: false matrix: include: - os: linux python: 2.7 - os: linux python: 3.3 - os: linux python: 3.4 - os: linux python: 3.5 - os: linux python: pypy - os: linux python: pypy3 - os: osx language: generic env: TERRYFY_PYTHON='homebrew 2' - os: osx language: generic env: TERRYFY_PYTHON='macpython 3.4' - os: osx language: generic env: TERRYFY_PYTHON='homebrew 3' before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/MacPython/terryfy; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/travis_tools.sh; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then get_python_environment $TERRYFY_PYTHON venv; fi - if [[ "$TERRYFY_PYTHON" == "homebrew 3" ]]; then alias pip=`which pip3` ; fi install: - pip install -e . script: - python setup.py test -q notifications: email: false after_success: - echo [distutils] > ~/.pypirc - echo index-servers = pypi >> ~/.pypirc - echo [pypi] >> ~/.pypirc - echo repository=https://pypi.python.org/pypi >> ~/.pypirc - echo username=zope.wheelbuilder >> ~/.pypirc - echo password=$PYPIPASSWORD >> ~/.pypirc - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then pip install twine; fi - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then python setup.py bdist_wheel; fi - if [[ $TRAVIS_TAG && "$TRAVIS_OS_NAME" == "osx" ]]; then twine upload dist/*; fi env: global: secure: "Ra1KZO3VAF+1gEZgXiAMYIH+nfJ7J7tUZ7x+FFhHO2Gw3y6wvhpdnV0Tb3U6ZtWQh6ouvcGlCFHMeygoQ2j8WvTyo4l10qSfQVnjoNg2c/z294o9tv2WyRhZzyGvs587BxolBG+eqBuO6JUSIVl4uiPAORBcV1TdrErhjgdHiLk="