Skip to content
Snippets Groups Projects
Commit 72e4b15a authored by nguyed99's avatar nguyed99
Browse files

Update CI/CD pipeline

parent f7302ca9
No related branches found
No related tags found
No related merge requests found
Pipeline #58679 failed
...@@ -3,24 +3,30 @@ stages: ...@@ -3,24 +3,30 @@ stages:
- test-jobs - test-jobs
- test-tasks - test-tasks
image: python:3.11-bullseye
variables: variables:
REGISTRY: git.imp.fu-berlin.de:5000/nguyed99/comp-sci-project PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
CONTAINER_IMAGE: $REGISTRY:$CI_COMMIT_REF_SLUG
before_script: cache:
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" --password-stdin $REGISTRY paths:
- .cache/pip
build-image: build-env:
stage: build stage: build
script: script:
- ./build/build-image-local.sh - pip install poetry
- cd build/
- poetry install
- poetry shell
- cd..
test-jobs: test-jobs:
stage: test-jobs stage: test-jobs
script: script:
- docker run $CONTAINER_IMAGE /bin/sh -c "pytest /root/jobs/tests" - pytest jobs/tests/
test-tasks: test-tasks:
stage: test-tasks stage: test-tasks
script: script:
- docker run $CONTAINER_IMAGE /bin/sh -c "pytest /root/tasks/tests" - pytest tasks/tests/
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment