FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab has been upgraded. See what's new in the
Changelog
.
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
2fe1f696
Commit
2fe1f696
authored
2 years ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
experimenting with pipeline vartiables
parent
387586a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-24
14 additions, 24 deletions
.gitlab-ci.yml
with
14 additions
and
24 deletions
.gitlab-ci.yml
+
14
−
24
View file @
2fe1f696
...
@@ -4,13 +4,17 @@ variables:
...
@@ -4,13 +4,17 @@ variables:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
PACKAGES_DIR
:
"
$CI_PROJECT_DIR/packages/"
PACKAGES_DIR
:
"
$CI_PROJECT_DIR/packages/"
CI_PYTHON_PATH
:
"
NOT_SET"
CI_PYTHON_PATH
:
"
NOT_SET"
DEPLOY_ENVIRONMENT
:
FULL_FAT_RUN_DATE
:
value
:
"
staging
"
value
:
"
today
"
options
:
options
:
-
"
production"
-
"
today"
-
"
staging"
-
"
yesterday"
-
"
canary"
-
"
custom"
description
:
"
The
deployment
target.
Set
to
'staging'
by
default."
description
:
"
Full-fat
tests
will
pull
data
from
the
deployment
environment.
As
with
the
production
pipeline,
not
specifying
a
date
will
result
in
todays
date
being
used.
If
\"
custom
\"
is
selected,
manually
enter
the
key
value
pair
using
the
format
in
this
example:
CUSTOM_RUN_DATE
20230115"
CUSTOM_RUN_DATE
:
"
NOT_SET"
# Pip's cache doesn't store the python packages
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
...
@@ -42,22 +46,6 @@ stages:
...
@@ -42,22 +46,6 @@ stages:
-
ls $PACKAGES_DIR
-
ls $PACKAGES_DIR
-
source /storage/app/miniconda3/bin/activate /storage/app/EWS_prod/envs/conda/py3EWS/
-
source /storage/app/miniconda3/bin/activate /storage/app/EWS_prod/envs/conda/py3EWS/
-
pip install coverage
-
pip install coverage
-
pwd
# - flagdir=$PACKAGES_DIR/flagdir
# - epimodel=$PACKAGES_DIR/epimodel
# - advisory=$PACKAGES_DIR/advisory_builder
# - met_processing=$PACKAGES_DIR/met_extractor_v2/met_data_extraction
# - met_processor=$PACKAGES_DIR/environmental_suitability/environmental_suitability
# - plotting=$PACKAGES_DIR/plotting/plotting
# - post_processing=$PACKAGES_DIR/post_processing/ews_postprocessing
# - source_gen=$PACKAGES_DIR/source_gen
# - coordinator=$CI_PROJECT_DIR/coordinator
# - coordinator_tests=$CI_PROJECT_DIR/tests
# - export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests
-
echo $PYTHONPATH
# - CI_PYTHON_PATH=$PYTHONPATH
# - ls ../
#.full_fat_before_script:
#.full_fat_before_script:
# before_script:
# before_script:
...
@@ -88,7 +76,7 @@ half_fat_tests:
...
@@ -88,7 +76,7 @@ half_fat_tests:
script
:
script
:
-
export PYTHONPATH="$CI_PYTHON_PATH"
-
export PYTHONPATH="$CI_PYTHON_PATH"
-
echo $
DEPLOY_ENVIRONMENT
-
echo $
FULL_FAT_RUN_DATE
# - echo $PYTHONPATH
# - echo $PYTHONPATH
-
cd $CI_PROJECT_DIR/tests/unit/coordinator/
-
cd $CI_PROJECT_DIR/tests/unit/coordinator/
-
python3 -m coverage run -m unittest *
-
python3 -m coverage run -m unittest *
...
@@ -125,13 +113,15 @@ half_fat_epi_tests:
...
@@ -125,13 +113,15 @@ half_fat_epi_tests:
expire_in
:
30 days
expire_in
:
30 days
full_fat_tests
:
full_fat_tests
:
when
:
manual
stage
:
full-fat
stage
:
full-fat
extends
:
.half_fat_before_script
extends
:
.half_fat_before_script
image
:
lb584/ews_coordinator:latest
image
:
lb584/ews_coordinator:latest
tags
:
[
"
ewas-production"
]
tags
:
[
"
ewas-production"
]
script
:
script
:
# - export PYTHONPATH="$CI_PYTHON_PATH"
# - export PYTHONPATH="$CI_PYTHON_PATH"
-
echo $DEPLOY_ENVIRONMENT
-
echo $FULL_FAT_RUN_DATE
-
echo $CUSTOM_RUN_DATE
# - echo $PYTHONPATH
# - echo $PYTHONPATH
-
echo "this is a manual job"
-
echo "this is a manual job"
-
cd $CI_PROJECT_DIR/tests/integration/full/
-
cd $CI_PROJECT_DIR/tests/integration/full/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment