Commit 81fb988e authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

fix typo

parent a7cce5b6
Pipeline #222796 failed with stages
in 1 minute and 12 seconds
......@@ -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
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