# make it explicit that we favor the new container-based travis workers
sudo: false

language: python
python:
  - 2.7
  - 3.4
notifications:
  email: false

addons:
  apt:
    packages:
      - gfortran
      - libatlas-dev
      - libblas-dev 
      - liblapack-dev
      - python-dev
      - python-scipy

install:
  - python setup.py install
# Run test
script:
  - nosetests --with-cov --cov opengrid --cov-config .coveragerc --logging-level=INFO

# Calculate coverage
after_success:
  - coveralls --config_file .coveragerc
language: python
sudo: false

matrix:
  include:
    # "Legacy" environments: oldest supported versions, without and with numba
    - python: "2.7"
      env: DEPS="numpy scipy matplotlib pandas"
    - python: "3.5"
      env: DEPS="numpy scipy matplotlib pandas"


before_install:
  - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.5.5-Linux-x86_64.sh -O miniconda.sh; fi
  - chmod +x miniconda.sh
  - ./miniconda.sh -b -p /home/travis/mc
  - export PATH=/home/travis/mc/bin:$PATH

install:
  # See:
  # https://groups.google.com/a/continuum.io/forum/#!topic/conda/RSFENqovnro
  # - conda update --yes --no-deps conda
  # OK, this used to *fix* the build, but now it *breaks* the build.
  # If you're reading this, good luck out there. I'm not sure what to tell you.
  - conda update --yes conda
  - conda config --add channels soft-matter
  - conda create -n testenv --yes $DEPS pip nose setuptools python=$TRAVIS_PYTHON_VERSION
  - source activate testenv
  # for debugging...
  - echo $PATH
  - which python
  - conda info
  - conda list
  - python setup.py install


script: nosetests --nologcapture -a '!slow'
Complete new approach, again based on miniconda
Complete new approach, again based on miniconda
