Skip to content

Instantly share code, notes, and snippets.

@GenevieveBuckley
Last active March 14, 2019 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GenevieveBuckley/9ca79f14be4f5f78628e67bf6518ea09 to your computer and use it in GitHub Desktop.
Save GenevieveBuckley/9ca79f14be4f5f78628e67bf6518ea09 to your computer and use it in GitHub Desktop.
Template for Travis CI integration using conda (remember to replace myenv)
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
@GenevieveBuckley
Copy link
Author

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