dist: trusty
sudo: false

language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27-cov
    - python: 3.6
      env: TOXENV=py36-cov
    # The 'osx' environment uses the python2.7 by default.
    # TODO: maybe also tests python3 on macOS
    - language: generic
      os: osx
      env: TOXENV=py27-cov

install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      curl -O https://bootstrap.pypa.io/get-pip.py;
      python get-pip.py --user;
      python -m pip install --user virtualenv;
      python -m virtualenv .venv/;
      source .venv/bin/activate;
    fi
  - pip install --upgrade pip
  - pip install -r requirements.txt
  - pip install -r dev-requirements.txt

script:
  - tox
  - tox -e bdist

after_success:
  - tox -e codecov

branches:
  only:
    - master
    - /^wip\/.*$/

dist: trusty
sudo: false

language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27-cov
    - python: 3.6
      env: TOXENV=py36-cov
    # The 'osx' environment uses the python2.7 by default.
    # TODO: maybe also tests python3 on macOS
    - language: generic
      os: osx
      env: TOXENV=py27-cov

install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      curl -O https://bootstrap.pypa.io/get-pip.py;
      python get-pip.py --user;
      python -m pip install --user virtualenv;
      python -m virtualenv .venv/;
      source .venv/bin/activate;
    fi
  - pip install --upgrade pip
  - pip install -r requirements.txt
  - pip install -r dev-requirements.txt

script:
  - tox
  - tox -e bdist

after_success:
  - tox -e codecov

branches:
  only:
    - master
    # We want to build wip/* branches since these are not usually used for PRs
    - /^wip\/.*$/
    # We want to build version tags as well.
    - /^v\d+\.\d+.*$/

Whitelist tags on Travis as well
Whitelist tags on Travis as well

Per Cosimo’s comment:
https://github.com/adobe-type-tools/psautohint/pull/51#issuecomment-402110838
