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

Replace environment file with Bioconda packages #702

Merged
merged 1 commit into from
Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 19 additions & 5 deletions devel/test
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,29 @@ export PS1=
conda_dir=$(conda info --base)
source "${conda_dir}/etc/profile.d/conda.sh"

ENV_NAME="test-augur"

if [[ -e "`which mamba`" ]]
then
CONDA="mamba"
else
CONDA="conda"

echo Install Mamba with `conda install -n base -c conda-forge mamba` for a faster test experience.
fi

# Install Augur from the current directory into a new conda environment.
conda env create -f environment.yml
conda activate augur
echo Setting up Conda test environment with ${CONDA}
${CONDA} create --yes --quiet -n ${ENV_NAME} -c conda-forge -c bioconda augur
conda activate ${ENV_NAME}
python3 -m pip install -e .[dev]

# Run unit and functional tests.
./run_tests.sh
bash tests/builds/runner.sh
echo Running tests
./run_tests.sh || true
bash tests/builds/runner.sh || true

# Clean up the temporary environment.
echo Cleaning up
conda deactivate
conda env remove -n augur
conda env remove -n ${ENV_NAME}
9 changes: 8 additions & 1 deletion docs/contribute/DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,20 @@ Before you create a new release, run all tests from a fresh conda environment to
The following commands will setup the equivalent conda environment to the Travis CI environment, run unit and integration tests, and deactivate the environment.

```bash
conda env create -f environment.yml
# Update Conda.
conda activate base
conda update conda

# Create an Augur environment.
conda create -n augur -c conda-forge -c bioconda augur
conda activate augur
python3 -m pip install -e .[dev]

# Run tests.
./run_tests.sh
bash tests/builds/runner.sh

# Clean up.
conda deactivate
conda env remove -n augur
```
Expand Down
14 changes: 0 additions & 14 deletions environment.yml

This file was deleted.