diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54221513ef2b649f211e237420bb9317a1bc1544..be101a566849c87c2db1273a85630c7a3afdf9b4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,3 @@ -# This file is a template, and might need editing before it works on your project. -# Official language image. Look for the different tagged releases at: -# https://hub.docker.com/r/library/python/tags/ - # Change pip's cache directory to be inside the project directory since we can # only cache local items. variables: @@ -50,18 +46,19 @@ prepare_code: - export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests - echo $PYTHONPATH - - $CI_PYTHON_PATH = $PYTHONPATH + - CI_PYTHON_PATH=$PYTHONPATH - ls ../ half_fat_tests: - when: always + when: manual image: lb584/ews_coordinator:latest needs: ["prepare_code"] dependencies: - prepare_code script: - - export PYTHONPATH=$CI_PYTHON_PATH + - export PYTHONPATH="$CI_PYTHON_PATH" + - echo $PYTHONPATH - cd $CI_PROJECT_DIR/tests/unit/coordinator/ - python3 -m coverage run -m unittest * - python -m coverage report @@ -101,5 +98,7 @@ manual_job: tags: - production script: + - export PYTHONPATH="$CI_PYTHON_PATH" + - echo $PYTHONPATH - echo "this is a manual job"