language: python

env:
    global:
        - PACKAGE="phpunitkit"
    matrix:
        - SUBLIME_TEXT_VERSION="3"

matrix:
    allow_failures:
        - python: "3.6"
    fast_finish: true
    include:
        - os: linux
          python: 3.3
        - os: linux
          python: 3.6
        - os: osx
          language: generic

before_install:
    - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
    # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers.
    - if [ "$TRAVIS_OS_NAME" == "linux"  ]; then
            export DISPLAY=:99.0;
            sh -e /etc/init.d/xvfb start;
      fi

install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
            pip install flake8;
            pip install flake8-docstrings;
            pip install python-coveralls;
      elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
            brew update;
            brew install python3;
            pip3 install flake8;
            pip3 install flake8-docstrings;
            pip3 install python-coveralls;
      fi
    - sh travis.sh bootstrap

script:
    - sh travis.sh run_tests --coverage
    - sh travis.sh run_syntax_tests
    - flake8

after_success:
    - coveralls

notifications:
    email: false

language: python

env:
    global:
        - PACKAGE="phpunitkit"
    matrix:
        - SUBLIME_TEXT_VERSION="3"

matrix:
    allow_failures:
        - python: "3.6"
    fast_finish: true
    include:
        - os: linux
          python: 3.3
        - os: linux
          python: 3.6
        - os: osx
          language: generic

before_install:
    - curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
    # Enable GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers.
    - if [ "$TRAVIS_OS_NAME" == "linux"  ]; then
            export DISPLAY=:99.0;
            sh -e /etc/init.d/xvfb start;
      fi

install:
    - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
            pip install flake8;
            pip install flake8-docstrings;
            pip install python-coveralls;
      elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
            brew update;
            brew upgrade python;
            pip3 install flake8;
            pip3 install flake8-docstrings;
            pip3 install python-coveralls;
      fi
    - sh travis.sh bootstrap
    - python --version
    - flake8 --version

script:
    - sh travis.sh run_tests --coverage
    - sh travis.sh run_syntax_tests
    - flake8

after_success:
    - coveralls

notifications:
    email: false

Fix Travis OSX error updating python
 Fix Travis OSX error updating python

```
Error: python 2.7.14 is already installed
To upgrade to 3.6.4_3, run `brew upgrade python`
/Users/travis/.travis/job_stages: line 57: pip3: command not found
/Users/travis/.travis/job_stages: line 57: pip3: command not found
/Users/travis/.travis/job_stages: line 57: pip3: command not found
The command "if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install
flake8; pip install flake8-docstrings; pip install python-coveralls;
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew install
python3; pip3 install flake8; pip3 install flake8-docstrings; pip3
install python-coveralls; fi" failed and exited with 127 during .
```
