Skip to content
Snippets Groups Projects

Draft: add damage service

Open Marius Kriegerowski requested to merge feature/testing-damage into main
+ 5
28
---
# You can define the services that you depend on and execute e.g. tests against that service:
testing:
image: python:3.9
@@ -7,34 +6,12 @@ testing:
services:
- name: git.gfz-potsdam.de:5000/dynamicexposure/coding/betty-integration/time-api:main
alias: time-api
# TODO: these repos will need to have dockerfiles and images pushed to their registry
# https://3dtools.geog.uni-heidelberg.de/loki/micromapping_giscience
# https://3dtools.geog.uni-heidelberg.de/loki/damage_clf_3dgeo
# (more to follow)
environment:
BETTY_TIME_API_URL=http://time-api:8000
- name: git.gfz-potsdam.de:5000/loki/damage_clf_3dgeo:main
alias: damage-clf-3dgeo
# environment:
# BETTY_TIME_API_URL=http://time-api:8000
before_script:
- pip install poetry
- poetry install
script:
- pytest tests/test_time_api.py
# next step would be to send triggers:
#trigger: git.gfz-potsdam:..... integration.git
# branch: main
## Alternatively, this deploys to an environment using the docker-compose file:
#deploy_staging:
# stage: deploy
# tags:
# - dind
# before_script:
# - apk add docker-compose
# script:
# - docker-compose pull
# - docker-compose up
# environment:
# name: staging
# url: https://staging.example.com
- poetry run pytest tests/test_time_api.py
Loading