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: .base: &base
TARGET_BRANCH: master image: registry.cern.ch/docker.io/library/python:3.9
tags: [cvmfs]
run-checks:
image: python:3.9
variables: variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache: cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_NAME"
paths: paths:
- ${CI_PROJECT_DIR}/.cache - ${CI_PROJECT_DIR}/.cache
script: before_script:
- . /cvmfs/lhcbdev.cern.ch/tools/rust/env
- python -m venv .cache/pre-commit-venv - python -m venv .cache/pre-commit-venv
- . .cache/pre-commit-venv/bin/activate - . .cache/pre-commit-venv/bin/activate
- pip install pre-commit - pip install pre-commit
- pre-commit --version - 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 - if ! pre-commit run --from-ref FETCH_HEAD --to-ref HEAD ; then
- git config user.name "Gitlab CI" - git config user.name "Gitlab CI"
- git config user.email noreply@cern.ch - git config user.email noreply@cern.ch
...@@ -29,3 +34,10 @@ run-checks: ...@@ -29,3 +34,10 @@ run-checks:
paths: paths:
- hooks_changes.patch - hooks_changes.patch
when: on_failure when: on_failure
full-checks:
<<: *base
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
script:
- pre-commit run --all-files
...@@ -21,3 +21,8 @@ repos: ...@@ -21,3 +21,8 @@ repos:
args: [--whitespaces-count, "8"] args: [--whitespaces-count, "8"]
files: '.*.yml(/.*)?' files: '.*.yml(/.*)?'
types: [file] 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