Commit 8a8f557b authored by Gadhave's avatar Gadhave
Browse files

Update .gitlab-ci.yml file

parent 596848e4
Pipeline #12125 passed with stages
in 31 seconds
......@@ -17,6 +17,9 @@ variables:
DOCKER_BUILDKIT: "1"
DOCKERHUB_REPO: "$DOCKER_USERNAME/teledatastream" # set repo name
PREVIOUS_BUILD_TAG: "8fc5fa08"
PIP_CACHE_DIR: ".cache/pip"
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
.build_template:
......@@ -33,7 +36,7 @@ lint:
cache:
key: "pip-cache-${CI_COMMIT_REF_SLUG}"
paths:
- .cache/pip
- $PIP_CACHE_DIR
before_script :
- mkdir -p .cache/pip
- pip install --cache-dir=.cache/pip flake8
......@@ -44,4 +47,37 @@ lint:
- echo "Done running the Python Lint stage"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH
\ No newline at end of file
- if: $CI_COMMIT_BRANCH
test:
stage: test
image: python:3.10
extends: .build_template
cache:
key: "pip-cache-${CI_COMMIT_REF_SLUG}"
paths:
- $PIP_CACHE_DIR
before_script:
- mkdir -p $PIP_CACHE_DIR
- pip install --cache-dir=$PIP_CACHE_DIR pytest
- echo "Running Tests"
- echo "PYTHONPATH:" ${PYTHONPATH}
- echo "PWD=$(pwd)"
script:
- echo "Running PyTests"
after_script:
- echo "Tests completed succesfully"
diag:
stage: diag
image: docker:24.0.9
tags: ["windows","docker","ws12"]
script:
- echo "Check socket:"
- ls -l /var/run || true
- stat /var/run/docker.sock || true
- echo "Docker info:"
- docker version || true
- docker info || true
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