FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

Init commit

Merged E. Evstafiev requested to merge init-branch into main
Files
25
+ 50
0
include:
- project: "uis/devops/continuous-delivery/ci-templates"
file: "/auto-devops/common-pipeline.yml"
ref: v2.6.1
- project: "uis/devops/continuous-delivery/ci-templates"
file: "/auto-devops/artifact-registry.yml"
ref: v2.6.1
variables:
DAST_DISABLED: "1"
TEST_DISABLED: "1"
PYTHON_BUILD_DIST_DISABLED: "1"
pre-commit:
rules:
- !reference [build, rules]
# We use the python:tox job to generate code coverage artefacts, etc. The tox job runs using the
# system Python version.
python:tox:
parallel:
matrix:
- PYTHON_VERSION: "3.11" # Make sure this matches the version in pyproject.toml and the Dockerfile.
variables:
TOX_ADDITIONAL_REQUIREMENTS: "poetry>=1.7.1"
container:pytest:
needs: [build]
image: docker:cli
services:
- docker:dind
before_script:
- echo -e "\e[0Ksection_start:`date +%s`:docker_info[collapsed=true]\r\e[0KDocker environment information"
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker info
- echo -e "\e[0Ksection_end:`date +%s`:docker_info\r\e[0K"
script:
- echo -e "\e[0Ksection_start:`date +%s`:docker_pull[collapsed=true]\r\e[0KPulling image"
- APPLICATION_IMAGE="${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}"
- docker pull "$APPLICATION_IMAGE"
- echo -e "\e[0Ksection_end:`date +%s`:docker_pull\r\e[0K"
- >-
docker run --rm --network host --entrypoint=""
-e TEST_USE_EXTERNAL_DATABASE -e EXTERNAL_SETTING_DATABASES
"$APPLICATION_IMAGE"
"/bin/bash" "-c" "poetry install --no-root && poetry run pytest"
variables:
FF_NETWORK_PER_BUILD: "true"
rules:
- !reference [build, rules]
Loading