From dfbda3c354f6583889c70c4df8046b57e7cc2a26 Mon Sep 17 00:00:00 2001
From: lb584 <lb584@cam.ac.uk>
Date: Wed, 1 Feb 2023 11:39:26 +0000
Subject: [PATCH] experimenting with pipeline vartiables

---
 .gitlab-ci.yml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18ccd8f..4114c62 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,13 @@ variables:
   PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
   PACKAGES_DIR: "$CI_PROJECT_DIR/packages/"
   CI_PYTHON_PATH: "NOT_SET"
+  DEPLOY_ENVIRONMENT:
+    value: "staging"
+    options:
+      - "production"
+      - "staging"
+      - "canary"
+    description: "The deployment target. Set to 'staging' by default."
 
 # Pip's cache doesn't store the python packages
 # https://pip.pypa.io/en/stable/reference/pip_install/#caching
@@ -81,7 +88,8 @@ half_fat_tests:
 
   script:
     - export PYTHONPATH="$CI_PYTHON_PATH"
-    - echo $PYTHONPATH
+    - echo $DEPLOYMENT_ENVIRONMENT
+#    - echo $PYTHONPATH
     - cd $CI_PROJECT_DIR/tests/unit/coordinator/
     - python3 -m coverage run -m unittest *
     - python -m coverage report
@@ -123,7 +131,8 @@ full_fat_tests:
   tags: ["ewas-production"]
   script:
 #    - export PYTHONPATH="$CI_PYTHON_PATH"
-    - echo $PYTHONPATH
+    - echo $DEPLOYMENT_ENVIRONMENT
+#    - echo $PYTHONPATH
     - echo "this is a manual job"
     - cd $CI_PROJECT_DIR/tests/integration/full/
     - ls
-- 
GitLab