language: python
python:
    - "2.7"

sudo: false

install:
  - pip install --upgrade pip
  - pip install -r requirements.txt

script:
  - export PYTHONPATH=$PYTHONPATH:$PWD
  - flake8 .
  - py.test -vs tests/
  - python benchmark.py

os:
  - linux
  - osx

# language: python
language: c

python:
    - "2.7"

sudo: false

addons:
  apt:
    packages:
        - python-dev
        - python-pip

install:
  - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; brew install python; brew link --overwrite python ; fi
  - pip install --user -U pip
  - pip install --user -r requirements.txt
  - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PATH=$PATH:$HOME/Library/Python/2.7/bin; fi

script:
  - export PYTHONPATH=$PYTHONPATH:$PWD
  - flake8 .
  - py.test -vs tests/
  - python benchmark.py

Test linux and osx builds with gcc and clang
Travis: Test linux and osx builds with gcc and clang

Currently requires explicit setup of the python env via homebrew and apt.
