Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.25 KB

Adding_an_env.md

File metadata and controls

56 lines (45 loc) · 1.25 KB

Adding a new environment

Define the environment

In the definitions folder add the environment to the install_[PIPELINE]_parameters.yaml.

  1. Add the environment name and define it
# [ENV_NAME] environment spec
e[ENV_NAME]:
  conda:
    [PROGRAM_NAME]: [PROGRAM_VERSION]=[PROGRAM_VERSION_SUB_PATCH]
    pip:
    python: 3.6
  pip:
  shell:
  1. Add the environment name to the environment_name hash
environment_name:
  e[ENV_NAME]
  1. Add the environment name to the installations array
installations:
  - e[ENV_NAME]

Add the environment to the CLI

In lib/MIP/Cli/Mip/Install/[PIPELINE]:

  1. Add the new environment to the option environment_name under the isa key

  2. Add the new environment to the option installations under the isa key

Add the environment to the travis tests

  1. Add the environment to the load_env option:

In templates/mip_[PIPELINE]_config.yaml:

load_env:
  mip_travis_[ENV_NAME]:
   [RECIPE|PROGRAM]:
   installation: e[ENV_NAME]
   method: [ENV_METHOD] # e.g conda
  1. Add the executables of your environment to the test envs:

In t/data/modules/miniconda/envs/:

$ mkdir -p mip_travis_[ENV_NAME]
$ touch bin/[PROGRAM_EXECUTABLE]
$ chmod a+x bin/[PROGRAM_EXECUTABLE]