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
bb18656b
Commit
bb18656b
authored
Apr 06, 2021
by
Baptiste CHOCOT
Browse files
Use CLI install script instead of custom instructions
parent
d1c78c87
Pipeline
#222638
failed with stages
in 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bb18656b
variables
:
CLI_CONDA_ENV
:
"
$CI_PROJECT_DIR/.conda_envs/cli.env"
CONDA_ENVS
:
"
$CI_PROJECT_DIR/.conda_envs"
CLI_CONDA_ENV
:
"
$CONDA_ENVS/cli.env"
SCORER_CONDA_ENV
:
"
$CONDA_ENVS/scorer.env"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.pip"
default
:
...
...
@@ -19,8 +21,9 @@ install:
stage
:
setup
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 $CLI_CONDA_ENV; fi
#- 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 $CLI_CONDA_ENV; fi
-
bash diva_evaluation_cli/bin/install.sh --all -c $CLI_CONDA_ENV -s $SCORER_CONDA_ENV
test-code
:
stage
:
test
...
...
@@ -28,5 +31,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_ENV
S/cli.env
; fi
-
if [[ -f environment.yml ]]; then conda activate $
CLI_
CONDA_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