Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ActEV
diva_evaluation_cli
Commits
d1c78c87
Commit
d1c78c87
authored
Apr 05, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d1c78c87
variables
:
CONDA_ENV
S
:
"
.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_ENV
S
"
-
"
$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_ENV
S
; 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment