language: python
python:
    - "2.7"
virtualenv:
    system_site_packages: true
before_install:
    - sudo apt-get install python-numpy
    - pip install pytest pytest-cov
    - pip install coveralls
    - pip install javabridge python-bioformats
    # get test data
    - cd lesion/tests
    - wget -i test_data_urls.txt
    - unzip *.zip
    - cd ../..

script:
    - python setup.py install
    - rm -rf build
    - py.test

after_success:
    - coveralls

language: python
python:
    - "2.7"
virtualenv:
    system_site_packages: true
before_install:
    - sudo apt-get update
    - pip install -U setuptools
    - wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
    - bash miniconda.sh -b -p $HOME/miniconda
    - export PATH="$HOME/miniconda/bin:$PATH"
    - hash -r
    - conda config --set always_yes yes --set changeps1 no
    - conda update -q conda
    - conda info -a

    - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib networkx scikit-image setuptools pip
    - source activate test-environment

    - pip install pytest pytest-cov
    - pip install coveralls
    - pip install javabridge python-bioformats
    #
    # get test data
    - cd lesion/tests
    - wget -i test_data_urls.txt
    - unzip *.zip
    - cd ../..

script:
    - python setup.py install
    - make clean
    - py.test

after_success:
    - coveralls

Use conda to deal with bigger dependencies
Use conda to deal with bigger dependencies
