language: python

python:
  - '2.6'
  - '2.7'

install: "python setup.py develop"

script: "python setup.py test"

deploy:
  provider: pypi
  user: allanino
  password:
    secure: f6A4pg0MWM11U4i+MViOMNe/YM9LT6v/jAFs6JRQ7jp+2eVjuzFlfByVn0sLdALExHi4sno66j7aLTGJcSlwlRZUt/Wss1C+4Rt1D+KrzriFdH8WANKzTF63fh8cZDYMdEerzCkcPwzcBB5tmdpMXq44LIaw/d4a7hF2L5bNqlc=
  on:
    all_branches: true
    tags: true
    repo: cloudwalkio/ddbscan
language: python

python:
  - '2.7'

# Setup anaconda
before_install:
  - wget http://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
  # 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

# Install packages
install: 
  - conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose dateutil pandas statsmodels
  # Coverage packages are on my binstar channel
  - conda install --yes -c dan_blanchard python-coveralls nose-cov
  - python setup.py install

# Run test
script:
  - nosetests --with-cov --cov ddbscan --cov-config .coveragerc --logging-level=INFO

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

deploy:
  provider: pypi
  user: allanino
  password:
    secure: f6A4pg0MWM11U4i+MViOMNe/YM9LT6v/jAFs6JRQ7jp+2eVjuzFlfByVn0sLdALExHi4sno66j7aLTGJcSlwlRZUt/Wss1C+4Rt1D+KrzriFdH8WANKzTF63fh8cZDYMdEerzCkcPwzcBB5tmdpMXq44LIaw/d4a7hF2L5bNqlc=
  on:
    all_branches: true
    tags: true
    repo: cloudwalkio/ddbscan
Use Miniconda to install Scipy
Use Miniconda to install Scipy
