os:
    - linux
matrix:
    allow_failures:
        - os: osx
    include:
        - os: osx
          language: generic
          env: TOXENV=py34
        - os: osx
          language: generic
          env: TOXENV=py35
language: python
python:
    - "3.4"
    - "3.5"
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 homebrew $TRAVIS_PYTHON_VERSION; fi
install:
    - "pip install -r requirements-hacking.txt"
script: make unittest

os:
    - linux
    - osx
matrix:
    allow_failures:
        - os: osx
language: python
python:
    - "3.4"
    - "3.5"
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 homebrew $TRAVIS_PYTHON_VERSION; fi
install:
    - "pip install -r requirements-hacking.txt"
script: make unittest

Revert "Use build matrix instead."
Revert "Use build matrix instead."

This reverts commit eb9d4dc273c8f2402c1e99accd0ffdd4283a5d7b.
