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
81fb988e
Commit
81fb988e
authored
Apr 07, 2021
by
Baptiste CHOCOT
Browse files
fix typo
parent
a7cce5b6
Pipeline
#222796
failed with stages
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
81fb988e
...
...
@@ -4,7 +4,6 @@ variables:
SCORER_CONDA_ENV
:
"
$CONDA_ENVS/scorer.env"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.pip"
default
:
cache
:
key
:
"
$CI_COMMIT_REF_SLUG"
...
...
@@ -19,7 +18,6 @@ stages:
-
test
-
simulation
# Install CLI and dependencies
install
:
stage
:
setup
...
...
@@ -31,7 +29,7 @@ install:
#- 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 args="-c $CLI_CONDA_ENV -s $SCORER_CONDA_ENV"; fi
-
bash diva_evaluation_cli/bin/install --all $args
-
bash diva_evaluation_cli/bin/install
.sh
--all $args
# If a dev* branch, merging it on dev then master
test-merge
:
...
...
@@ -45,14 +43,30 @@ test-merge:
-
if [[ "$CI_COMMIT_BRANCH" -ne "development" ]]; then git checkout development && git merge $CI_COMMIT_BRANCH; fi
-
git checkout master && git merge development
# Linting, unit tests, and system validation
test-code
:
stage
:
test
needs
:
[
install
,
test-merge
]
only
:
-
pushes
except
:
-
refs
- /^baseline.*/
script
:
-
python3 -m pycodestyle --filename=*.py diva_evaluation_cli/bin/ test/
-
python3 -m unittest discover -s test/
-
if [[ -f environment.yml ]]; then conda activate $CLI_CONDA_ENV; fi
-
actev -h
-
actev validate-system --strict
# making sure baseline is still working
test-baseline
:
stage
:
test
needs
:
[
install
]
only
:
-
pushes
-
refs
- /^baseline.*/
script
:
-
actev -h
-
actev validate-system
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