Last active
March 14, 2019 23:55
-
-
Save GenevieveBuckley/9ca79f14be4f5f78628e67bf6518ea09 to your computer and use it in GitHub Desktop.
Template for Travis CI integration using conda (remember to replace myenv)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
python: | |
- "3.5" | |
- "3.6" | |
install: | |
- sudo apt-get update | |
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | |
- 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 | |
# Set up conda environment for testing | |
- conda env create -f environment.yml | |
- conda activate myenv | |
- pip install -e . | |
script: | |
- py.test --cov . | |
after_success: | |
coveralls |
Better to use conda activate myenv
instead of source activate myenv
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html