<<: *default_triggering_rules
<<: *base_image
stage: quick-checks
+ needs: []
tags:
- smalljob
# Check dangling symlinks in the repository
- if find . -xtype l | grep .; then exit 1; fi
- muon-meson analyze -Werror
- needs: []
artifacts:
paths:
- checklibs.out
black:
<<: *quick_checks_job
<<: *python_triggering_rules
- needs: []
script:
- black $(git ls-files '*.py')
- git diff > black.patch
vulture:
<<: *quick_checks_job
<<: *python_triggering_rules
- needs: []
script:
- vulture --exclude "*ans.py,conftest.py,re_compile_checker.py,isctest" --ignore-names "after_servers_start,bootstrap,pytestmark,autouse_*" bin/tests/system/
script:
- *git_clone_bind9-qa
- bind9-qa/ci-orphaned-anchors/check-orphaned-anchors-ci.py .gitlab-ci.yml
- needs: []
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- *rule_mr_manual
- *rule_tag
- *rule_source_other_than_mr
- needs: []
script:
- if [ -r .clang-format ]; then "${CLANG_FORMAT}" -i -style=file $(git ls-files '*.c' '*.h'); fi
- git diff > clang-format.patch
- *rule_mr_manual
- *rule_tag
- *rule_source_other_than_mr
- needs: []
script:
- git ls-files "*meson.build" | xargs muon-meson fmt -i
- git diff > meson-format.patch
doctest:
<<: *quick_checks_job
- needs: []
# This script needs to: 1) fail if the doctest fails, 2) fail if
# the junit.xml file is broken, 3) produce the junit.xml file even if
# the doctest fails. Therefore, $RET is used to "cache" the
pylint:
<<: *quick_checks_job
<<: *python_triggering_rules
- needs: []
variables:
PYTHONPATH: "${CI_PROJECT_DIR}/bin/tests/system"
script:
reuse:
<<: *quick_checks_job
- needs: []
image:
name: docker.io/fsfe/reuse:latest
entrypoint: [""]
shfmt:
<<: *quick_checks_job
<<: *shell_triggering_rules
- needs: []
script:
- shfmt -w -i 2 -ci -bn . $(find . -name "*.sh.in")
- git diff > shfmt.patch
danger:
<<: *quick_checks_job
- needs: []
script:
- pip install git+https://gitlab.isc.org/isc-projects/hazard.git
- hazard
- doc/arm/linkcheck_output/
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- needs: []
generate-stress-test-configs:
<<: *quick_checks_job
artifacts:
paths:
- stress-test-configs.yml
- needs: []
generate-tsan-stress-test-configs:
<<: *quick_checks_job
artifacts:
paths:
- tsan-stress-test-configs.yml
- needs: []
when: manual
# Jobs in the other-checks stage