image: continuumio/miniconda3:4.7.12

before_script:
  - apt update && apt install -y gcc
  - conda init bash && source ~/.bashrc && echo $CONDA_DEFAULT_ENV
  - conda env create -f install/environment.root.yml
  - conda activate rnaseq_pipeline && echo $CONDA_DEFAULT_ENV
  - conda env update -f install/environment.dev.yml

test:
  script:
    # add code quality tests here
    # add unit tests here
    # add script tests here
    - bash tests/test_scripts_labkey_to_snakemake_table/test.sh
    - bash tests/test_scripts_labkey_to_snakemake_api/test.sh
    # add integration tests here
    - bash tests/test_create_dag_image/test.sh
    - bash tests/test_create_rule_graph/test.sh
    - bash tests/test_integration_workflow/test.local.sh