Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: travis error during installation of dependencies #14

Merged
merged 3 commits into from
Mar 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,26 @@ python:
before_install:
- python3 -m pip install --upgrade pip setuptools wheel
install:
- pip3 install git+https://github.com/nextstrain/cli
# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/use-conda-with-travis-ci.html#the-travis-yml-file
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
j23414 marked this conversation as resolved.
Show resolved Hide resolved
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- 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
# Install nextstrain cli
- conda install -n base -c conda-forge mamba --yes
- conda activate base
- mamba create -n nextstrain -c bioconda nextstrain-cli --yes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would install the latest nextstrain-cli from bioconda rather than latest from the default branch (current behavior with pip3 install git+https://github.com/nextstrain/cli). I think this should be fine though.

- conda activate nextstrain
- mamba install -c conda-forge -c bioconda augur auspice nextalign snakemake git --yes
# - pip3 install git+https://github.com/nextstrain/cli
j23414 marked this conversation as resolved.
Show resolved Hide resolved
- nextstrain version
- nextstrain check-setup
- nextstrain update
Expand Down