Commit d1c78c87 authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

change vars; activate conda if possible. Change cache dirs

parent c28bad4b
Pipeline #222438 failed with stages
in 1 minute and 16 seconds
variables:
CONDA_ENVS: ".conda_envs"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
CLI_CONDA_ENV: "$CI_PROJECT_DIR/.conda_envs/cli.env"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip"
default:
image: continuumio/anaconda3
cache:
paths:
- ".cache/pip"
- "$CONDA_ENVS"
- "$PIP_CACHE_DIR"
- "$CLI_CONDA_ENV"
stages:
- setup
......@@ -20,7 +20,7 @@ install:
script:
- python3 -m pip install pycodestyle
- if [[ -f requirements.txt ]]; then python3 -m pip install -r requirements.txt; python3 -m pip install -e .; fi
- if [[ -f environment.yml ]]; then mkdir $CONDA_ENVS; conda create -f environment.yml -p $CONDA_ENVS; fi
- if [[ -f environment.yml ]]; then mkdir $CONDA_ENVS; conda create -f environment.yml -p $CLI_CONDA_ENV; fi
test-code:
stage: test
......@@ -28,4 +28,5 @@ test-code:
script:
- python3 -m pycodestyle --filename=*.py diva_evaluation_cli/bin/ test/
- python3 -m unittest discover -s test/
- if [[ -f environment.yml ]]; then conda activate $CONDA_ENVS/cli.env; fi
- actev -h
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment