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

Update CI/CD pipeline

parent f7302ca9
Branches
No related tags found
No related merge requests found
Pipeline #58679 failed
......@@ -3,24 +3,30 @@ stages:
- test-jobs
- test-tasks
image: python:3.11-bullseye
variables:
REGISTRY: git.imp.fu-berlin.de:5000/nguyed99/comp-sci-project
CONTAINER_IMAGE: $REGISTRY:$CI_COMMIT_REF_SLUG
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
before_script:
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" --password-stdin $REGISTRY
cache:
paths:
- .cache/pip
build-image:
build-env:
stage: build
script:
- ./build/build-image-local.sh
- pip install poetry
- cd build/
- poetry install
- poetry shell
- cd..
test-jobs:
stage: test-jobs
script:
- docker run $CONTAINER_IMAGE /bin/sh -c "pytest /root/jobs/tests"
- pytest jobs/tests/
test-tasks:
stage: test-tasks
script:
- docker run $CONTAINER_IMAGE /bin/sh -c "pytest /root/tasks/tests"
\ No newline at end of file
- pytest tasks/tests/
\ 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