language: python
python:
    - 2.7
    - 3.5
    - 3.6
install:
    - pip install pillow
    - pip install matplotlib
    - pip install shapely
    - pip install scikit-image
    - pip install coverage
    - pip install coveralls
    - pip install codecov
    - pip install codacy-coverage
before_script: # configure a headless display to test plot generation
    - "export DISPLAY=:99.0"
    - "sh -e /etc/init.d/xvfb start"
    - sleep 3 # give xvfb some time to start
script:
  coverage run --source=dicompylercore setup.py test
after_success:
  - coveralls
  - codecov
  - python-codacy-coverage
