language: python
python: 3.6
sudo: required
dist: trusty

matrix:
  exclude:
    # Exclude the default
    - python: 3.6
  include:
    - os: osx
      language: generic
      env:
        - PY_VERSION=2.7
    - os: osx
      language: generic
      env:
        - PY_VERSION=3.5
    - os: osx
      language: generic
      env:
        - PY_VERSION=3.6

install:
  - scripts/osx/travis-setup.sh

script:
  - if [[ "${PY_VERSION}" == "2.7" ]]; then ${PY_BIN_DIR}/nox -s cover                                ; fi
  - if [[ "${PY_VERSION}" == "3.5" ]]; then ${PY_BIN_DIR}/nox -s "unit_tests(python_version='3.5')"   ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s "unit_tests(python_version='3.6')"   ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s doctest                              ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s "check_journal(machine='travis-osx')"; fi

language: generic
os: osx

matrix:
  include:
    - os: osx
      language: generic
      env:
        - PY_VERSION=2.7
    - os: osx
      language: generic
      env:
        - PY_VERSION=3.5
    - os: osx
      language: generic
      env:
        - PY_VERSION=3.6

install:
  - scripts/osx/travis-setup.sh

script:
  - if [[ "${PY_VERSION}" == "2.7" ]]; then ${PY_BIN_DIR}/nox -s cover                                ; fi
  - if [[ "${PY_VERSION}" == "3.5" ]]; then ${PY_BIN_DIR}/nox -s "unit_tests(python_version='3.5')"   ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s "unit_tests(python_version='3.6')"   ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s doctest                              ; fi
  - if [[ "${PY_VERSION}" == "3.6" ]]; then ${PY_BIN_DIR}/nox -s "check_journal(machine='travis-osx')"; fi

Revert "Changing base Travis image from OS X to Trusty."
Revert "Changing base Travis image from OS X to Trusty."

This reverts commit 94e530620da5f666afd250d7d8a40a9c5ed2add8.
