language: python
sudo: false
branches:
only:
  - master
python:
  - 2.7
  #- "2.6"
  # - 3.4
env:
  - SCIPY_VERSION="deb http://us.archive.ubuntu.com/ubuntu/ precise main universe"
  - SCIPY_VERSION="deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe"

virtualenv:
  system_site_packages: true

before_install:
  - wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - chmod +x miniconda.sh
  - ./miniconda.sh -b
  - export PATH=/home/travis/miniconda/bin:$PATH
  - conda update --yes conda
  - conda create -y -q -n test-env python=$TRAVIS_PYTHON_VERSION
  - source activate test-env

install:
  - conda install --yes numpy scipy nose pip
  - pip install -r travis.txt

script: 
  - python -c 'import numpy; print numpy.__version__'
  - python -c 'import scipy; print scipy.__version__'
  - python setup.py install  >/dev/null
  - python -c 'import pysal'
  #- python -c 'import multiprocessing as mp; print mp.cpu_count()'
  #- pychecker --limit 1000 pysal
  - python setup.py sdist >/dev/null
  #- nosetests --processes=-1 --process-timeout=60 --verbosity=1 --ignore-files=collection --exclude-dir=pysal/contrib
  #- nosetests
  - echo "check_stable=False" >pysal/config.py
  - nosetests --with-coverage --cover-package=pysal 
  #- cd doc; make pickle; make doctest
notifications:
    email:
        recipients:
            - sjsrey@gmail.com
            - levi.john.wolf@gmail.com
        on_success: always
        on_failure: always

after_success:
  - coveralls
