FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit c1470d45 authored by L. Bower's avatar L. Bower
Browse files

experimenting with manual jobs

parent 09721d34
No related branches found
No related tags found
No related merge requests found
# 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 # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
...@@ -50,18 +46,19 @@ prepare_code: ...@@ -50,18 +46,19 @@ prepare_code:
- export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests - export PYTHONPATH=$PYTHONPATH:$flagdir:$epimodel:$advisory:$met_processing:$met_processor:$plotting:$source_gen:$post_processing:$coordinator:$coordinator_tests
- echo $PYTHONPATH - echo $PYTHONPATH
- $CI_PYTHON_PATH = $PYTHONPATH - CI_PYTHON_PATH=$PYTHONPATH
- ls ../ - ls ../
half_fat_tests: half_fat_tests:
when: always when: manual
image: lb584/ews_coordinator:latest image: lb584/ews_coordinator:latest
needs: ["prepare_code"] needs: ["prepare_code"]
dependencies: dependencies:
- prepare_code - prepare_code
script: script:
- export PYTHONPATH=$CI_PYTHON_PATH - export PYTHONPATH="$CI_PYTHON_PATH"
- 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 *
- python -m coverage report - python -m coverage report
...@@ -101,5 +98,7 @@ manual_job: ...@@ -101,5 +98,7 @@ manual_job:
tags: tags:
- production - production
script: script:
- export PYTHONPATH="$CI_PYTHON_PATH"
- echo $PYTHONPATH
- echo "this is a manual job" - echo "this is a manual job"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment