# Config file for automatic testing at travis-ci.org

language: python

python:
  - "3.3"
  - "2.7"

before_install:
  - sudo apt-get -qq update
  - sudo apt-get -qq install python-numpy python3-numpy python-scipy python3-scipy
  - pip install --upgrade pip setuptools  # Upgrade pip and setuptools to get ones with `wheel` support
  - pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel --use-mirrors numpy
  - pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel --use-mirrors scipy

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
  - pip install -r requirements.txt

# command to run tests, e.g. python setup.py test
script:
  - py.test

# Config file for automatic testing at travis-ci.org

language: python

python:
  - "3.3"
  - "2.7"

before_install:
  - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-3.3.0-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-3.3.0-Linux-x86_64.sh -O miniconda.sh; fi
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/anaconda/bin:$PATH
  - conda update --yes conda
  # The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
  - sudo rm -rf /dev/shm
  - sudo ln -s /run/shm /dev/shm

# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
  - conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION pip numpy scipy
  - source activate env_name
  # Coverage packages are on Dan Blanchard's binstar channel
  - conda install --yes -c dan_blanchard python-coveralls nose-cov
  - pip install pytest
  - pip install -r requirements.txt

# command to run tests, e.g. python setup.py test
script:
  - py.test
  - nosetests --with-cov --cov Absolute_Integrator --cov-config .coveragerc --logging-level=INFO

# Calculate coverage
after_success:
  - coveralls --config_file .coveragerc

Add numpy and scipy to Travis install step (a working way this time)
Add numpy and scipy to Travis install step (a working way this time)
