Commit 46915442 authored by Benavides Ontiveros's avatar Benavides Ontiveros
Browse files

odify .\.gitlab-ci.yml

parent 7515ef62
Pipeline #12159 failed
stages: stages:
- lint - lint
- test
- diag - diag
- build - build
- deploy - deploy
...@@ -38,28 +37,6 @@ lint: ...@@ -38,28 +37,6 @@ lint:
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
when: never when: never
# ----------------- Test Stage -----------------
test:
stage: test
image: python:3.10
extends: .build_template
before_script:
- echo "Docker CLI info:"
- docker version
- pip install pytest
- echo "Running Tests"
- echo "PYTHONPATH: ${PYTHONPATH}"
- echo "PWD=$(pwd)"
script:
- echo "Running PyTests"
after_script:
- echo "Tests completed successfully"
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH'
- if: '$CI_COMMIT_TAG'
when: never
# ----------------- Diagnostics Stage ----------------- # ----------------- Diagnostics Stage -----------------
diag: diag:
stage: diag stage: diag
...@@ -113,14 +90,6 @@ deploy: ...@@ -113,14 +90,6 @@ deploy:
docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest; docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest;
docker push $DOCKERHUB_REPO:latest; docker push $DOCKERHUB_REPO:latest;
fi fi
# Optional: Run container to test runtime environment variables
- docker run --rm \
-e SUBREDDITS="$SUBREDDITS" \
-e POST_LIMIT="$POST_LIMIT" \
-e COMMENT_LIMIT="$COMMENT_LIMIT" \
-e OUTPUT_DIR="$OUTPUT_DIR" \
$DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never when: never
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment