language: python
python:
  - "3.5"
  - "3.4"
  - "2.7"
# Configure a headless display to test plot generation
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# Install any dependencies for running the tests:
install: pip install codecov pytest-cov matplotlib jupyter git+https://github.com/computationalmodelling/nbval.git git+https://github.com/joommf/finitedifferencefield.git
# command to run tests
script:
  - py.test --cov=oommffield --cov-config .coveragerc
  - py.test --nbval docs/ipynb/*.ipynb
  - py.test --doctest-modules oommffield/*.py
after_success:
  codecov
notifications:
  slack: joommf:eqKxGPXuUP3LxnOfxg7GWgDF

language: python
python:
  - "3.5"
  - "3.4"
# Configure a headless display to test plot generation
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
# Install any dependencies for running the tests:
install: pip install codecov pytest-cov matplotlib jupyter git+https://github.com/computationalmodelling/nbval.git git+https://github.com/joommf/finitedifferencefield.git
# command to run tests
script:
  - py.test --cov=oommffield --cov-config .coveragerc
  - py.test --nbval docs/ipynb/*.ipynb
  - py.test --doctest-modules oommffield/*.py
after_success:
  codecov
notifications:
  slack: joommf:eqKxGPXuUP3LxnOfxg7GWgDF

Remove Python 2 testing as binary file reading breaks backwards compatability
Remove Python 2 testing as binary file reading breaks backwards compatability
