language: python
env:
    - PYTHON=2.7
    - PYTHON=3.4
# command to install dependencies
cache: pip
sudo: false
virtualenv:
  system_site_packages: true
addons:
  apt:
    packages:
      - libatlas-dev
      - libatlas3gf-base
      - libblas-dev
      - libglib2.0-dev
      - liblapack-dev
      - python-matplotlib
      - gfortran
      - python-tk
install:
  # Install project requirements
  - pip install -r requirements.txt
  # Install test and coverage requirements
  - pip install codecov mock nose coverage
  # Install project
  - python setup.py build install

before_install:
  # We need to create a (fake) display on Travis (allows Mayavi tests to run)
  - export DISPLAY=:99.0
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset


# command to run tests
script: nosetests  --with-coverage --cover-package=openbci
after_success:
  - codecov

language: python
env:
    - PYTHON=2.7
    - PYTHON=3.4
# command to install dependencies
cache: pip
sudo: false
virtualenv:
  system_site_packages: true
addons:
  apt:
    packages:
      - libatlas-dev
      - libatlas3gf-base
      - libblas-dev
      - libglib2.0-dev
      - liblapack-dev
      - python-matplotlib
      - gfortran
      - python-tk
install:
  # Install project requirements
  - pip install -r requirements.txt
  # Install test and coverage requirements
  - pip install codecov mock nose coverage
  # Install project
  - python setup.py build install

before_install:
  - export PYTHONPATH=$PYTHONPATH:$(pwd)
  # We need to create a (fake) display on Travis (allows Mayavi tests to run)
  - export DISPLAY=:99.0
  - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset


# command to run tests
script: nosetests  --with-coverage --cover-package=openbci
after_success:
  - codecov

Add current directory to python path
Add current directory to python path
