mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Move pylint CI job to precheck stage
Historically, some *.py files were generated, so Python checks required running ./configure beforehand. This is no longer the case since v9_18, so let's run the job ASAP without the unnecessary extra dependency on autoconf job.
This commit is contained in:
@@ -460,6 +460,14 @@ coccinelle:
|
|||||||
- util/check-cocci
|
- util/check-cocci
|
||||||
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
|
- if test "$(git status --porcelain | grep -Ev '\?\?' | wc -l)" -gt "0"; then git status --short; exit 1; fi
|
||||||
|
|
||||||
|
pylint:
|
||||||
|
<<: *precheck_job
|
||||||
|
needs: []
|
||||||
|
script:
|
||||||
|
- pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/)')
|
||||||
|
# Ignore Pylint wrong-import-position error in system test to enable use of pytest.importorskip
|
||||||
|
- pylint --rcfile $CI_PROJECT_DIR/.pylintrc --disable=wrong-import-position $(git ls-files 'bin/tests/system/*.py' | grep -vE 'ans\.py')
|
||||||
|
|
||||||
reuse:
|
reuse:
|
||||||
<<: *precheck_job
|
<<: *precheck_job
|
||||||
needs: []
|
needs: []
|
||||||
@@ -480,19 +488,6 @@ danger:
|
|||||||
variables:
|
variables:
|
||||||
- $DANGER_GITLAB_API_TOKEN
|
- $DANGER_GITLAB_API_TOKEN
|
||||||
|
|
||||||
pylint:
|
|
||||||
<<: *default_triggering_rules
|
|
||||||
<<: *base_image
|
|
||||||
stage: postcheck
|
|
||||||
needs:
|
|
||||||
- job: autoreconf
|
|
||||||
artifacts: true
|
|
||||||
script:
|
|
||||||
- *configure
|
|
||||||
- pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -vE '(ans\.py|dangerfile\.py|^bin/tests/system/)')
|
|
||||||
# Ignore Pylint wrong-import-position error in system test to enable use of pytest.importorskip
|
|
||||||
- pylint --rcfile $CI_PROJECT_DIR/.pylintrc --disable=wrong-import-position $(git ls-files 'bin/tests/system/*.py' | grep -vE 'ans\.py')
|
|
||||||
|
|
||||||
tarball-create:
|
tarball-create:
|
||||||
stage: precheck
|
stage: precheck
|
||||||
<<: *base_image
|
<<: *base_image
|
||||||
|
Reference in New Issue
Block a user