Skip to content
Snippets Groups Projects
Commit 100c38dc authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'schema-sim10-run3-ideal' into 'sim10/run3-ideal'

Add schema check for sim10/run3-ideal

See merge request !107
parents 8a693e7b b8498877
No related branches found
No related tags found
2 merge requests!130Draft: Updated PD properties and time info,!107Add schema check for sim10/run3-ideal
variables:
TARGET_BRANCH: master
run-checks:
image: python:3.9
.base: &base
image: registry.cern.ch/docker.io/library/python:3.9
tags: [cvmfs]
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
key: "$CI_JOB_NAME"
paths:
- ${CI_PROJECT_DIR}/.cache
script:
before_script:
- . /cvmfs/lhcbdev.cern.ch/tools/rust/env
- python -m venv .cache/pre-commit-venv
- . .cache/pre-commit-venv/bin/activate
- pip install pre-commit
- pre-commit --version
- git fetch origin master
mr-checks:
<<: *base
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
script:
- git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
- if ! pre-commit run --from-ref FETCH_HEAD --to-ref HEAD ; then
- git config user.name "Gitlab CI"
- git config user.email noreply@cern.ch
......@@ -29,3 +34,10 @@ run-checks:
paths:
- hooks_changes.patch
when: on_failure
full-checks:
<<: *base
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
script:
- pre-commit run --all-files
......@@ -21,3 +21,8 @@ repos:
args: [--whitespaces-count, "8"]
files: '.*.yml(/.*)?'
types: [file]
- repo: https://gitlab.cern.ch/lhcb-core/lb-conddb-schema-check.git
rev: 0.2.0
hooks:
- id: schema-check
files: ^(Conditions/|\.schema\.json)
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment