mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[9.18] chg: ci: Check that generated changelog entry doesn't break docs build
Since changelog entries are now generated from MR title&description, they aren't sanity checked during a regular docs build. If these contain special sequences that will be interpreted by sphinx, it might result in breakage that would have to be amended manually. Add a CI check to test a doc build with changelog after the MR is merged to ensure that the docs can be built when generating changelog from pristine git contents. Related #4847 Backport of MR !9294 Merge branch 'backport-nicki/add-changelog-entry-check-9.18' into 'bind-9.18' See merge request isc-projects/bind9!9312
This commit is contained in:
commit
3a8082c02b
5 changed files with 26 additions and 4 deletions
|
|
@ -660,6 +660,28 @@ tarball-create:
|
|||
|
||||
# Jobs for doc builds on Debian 12 "bookworm" (amd64)
|
||||
|
||||
changelog:
|
||||
<<: *base_image
|
||||
<<: *docs_job
|
||||
rules:
|
||||
- if: '$CI_MERGE_REQUEST_TITLE =~ /\s(dev|usr|pkg):/'
|
||||
variables:
|
||||
GIT_AUTHOR_NAME: $GITLAB_USER_NAME
|
||||
GIT_AUTHOR_EMAIL: $GITLAB_USER_EMAIL
|
||||
GIT_COMMITTER_NAME: $GITLAB_USER_NAME
|
||||
GIT_COMMITTER_EMAIL: $GITLAB_USER_EMAIL
|
||||
before_script:
|
||||
- echo -e "$CI_MERGE_REQUEST_TITLE\n" > commitmsg
|
||||
- sed -i 's/^Draft:\s*//' commitmsg
|
||||
- echo -e "$CI_MERGE_REQUEST_DESCRIPTION" >> commitmsg
|
||||
- git commit --allow-empty -F commitmsg
|
||||
- ./contrib/gitchangelog/gitchangelog.py HEAD^..HEAD
|
||||
needs:
|
||||
- job: autoreconf
|
||||
artifacts: true
|
||||
artifacts:
|
||||
untracked: true
|
||||
|
||||
docs:
|
||||
<<: *default_triggering_rules
|
||||
<<: *base_image
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
############################################################################
|
||||
# Copyright (c) 2018, Valentin Lab
|
||||
# All rights reserved.
|
||||
|
|
|
|||
Loading…
Reference in a new issue