language: python
python:
  - "3.6"

# Install conda
install:
  - sudo apt-get update
  # You may want to periodically update this, although the conda update
  # conda line below will keep everything up-to-date.  We do this
  # conditionally because it saves us some downloading if the version is
  # the same.
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
    fi
  - 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
  # Useful for debugging any issues with conda
  - conda info -a
  
# command to install dependencies
install:
    - conda install -c conda-forge hdbscan
    - pip install -r requirements.txt
    - pip install coveralls
    - pip install pytest-cov
# command to run tests
script: pytest --cov=DBCV
after_success:
    - coveralls

language: python
python:
  - "3.6"

# Install conda
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:
  # command to install dependencies
  - conda install --yes --file requirements.txt
  - pip install coveralls
  - pip install pytest-cov
  
# command to run tests
script: pytest --cov=DBCV
after_success:
    - coveralls

Use conda instead of pip
Use conda instead of pip
