Skip to content

Instantly share code, notes, and snippets.

@Juke34
Last active April 28, 2020 12:41
Show Gist options
  • Save Juke34/4884de6ae192ddf9e57fee6c2954c1fa to your computer and use it in GitHub Desktop.
Save Juke34/4884de6ae192ddf9e57fee6c2954c1fa to your computer and use it in GitHub Desktop.
Manipulating conda
# To save the current env
conda env export > environment.yaml
#conda configuration
conda config --show channels # to view your configuration's current state,
conda config --show-sources # to view config file locations.
# To test locally a new/modified package:
conda create -n bioconda bioconda-utils
conda activate bioconda
bioconda-utils build recipes/ config.yml --packages the_package_name
#or
bioconda-utils build --docker --mulled-test --packages the_package_name
# ==== About test ====
# Test executed in the bioconda env (second part in the CI wrokflow) only the run_test.sh is used if exists (test in the meta.yaml file will be skipped).
# When testing in the container (second part in the CI wrokflow) the run_test.sh file is not taken into account, only the test in
# the meta.yaml file is executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment