mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Azure: Run Lint task as separate job
Lint task uses PyPI to get the latest Pylint, which may pull in any other packages as dependencies. For distro isolation the Lint job should not produce any meaningful artifacts or they should not be used in subsequent jobs. So, this job have to be isolated from the others. Fixes: https://pagure.io/freeipa/issue/8772 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
91e7452393
commit
7855c77f93
@@ -66,12 +66,23 @@ jobs:
|
||||
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --privileged --env container=docker
|
||||
steps:
|
||||
- template: templates/${{ variables.PREPARE_BUILD_TEMPLATE }}
|
||||
- template: templates/${{ variables.PREPARE_LINT_TEMPLATE }}
|
||||
- template: templates/${{ variables.AUTOCONF_TEMPLATE }}
|
||||
- script: |
|
||||
set -e
|
||||
echo "Running make target 'lint'"
|
||||
make V=0 lint
|
||||
displayName: Lint sources
|
||||
|
||||
- job: Docs
|
||||
pool:
|
||||
vmImage: $(VM_IMAGE)
|
||||
container:
|
||||
image: $(DOCKER_BUILD_IMAGE)
|
||||
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --privileged --env container=docker
|
||||
steps:
|
||||
- template: templates/${{ variables.PREPARE_BUILD_TEMPLATE }}
|
||||
- template: templates/${{ variables.AUTOCONF_TEMPLATE }}
|
||||
- template: templates/${{ variables.BUILD_DOCS_TEMPLATE }}
|
||||
- template: templates/publish-build.yml
|
||||
parameters:
|
||||
|
||||
7
ipatests/azure/templates/prepare-lint-fedora.yml
Normal file
7
ipatests/azure/templates/prepare-lint-fedora.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
sudo dnf -y install python3-pip
|
||||
# https://pagure.io/freeipa/issue/8771
|
||||
python3 -m pip install --user --upgrade astroid pylint==2.7.1
|
||||
displayName: Install Lint dependencies
|
||||
@@ -17,6 +17,9 @@ variables:
|
||||
PREPARE_TOX_TEMPLATE: ${{ format('prepare-tox-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
PREPARE_WEBUI_TEMPLATE: ${{ format('prepare-webui-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
# the template to install Lint dependencies
|
||||
PREPARE_LINT_TEMPLATE: ${{ format('prepare-lint-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
# the template to build sphinx docs
|
||||
BUILD_DOCS_TEMPLATE: ${{ format('build-docs-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ variables:
|
||||
PREPARE_TOX_TEMPLATE: ${{ format('prepare-tox-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
PREPARE_WEBUI_TEMPLATE: ${{ format('prepare-webui-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
# the template to install Lint dependencies
|
||||
PREPARE_LINT_TEMPLATE: ${{ format('prepare-lint-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
# the template to build sphinx docs
|
||||
BUILD_DOCS_TEMPLATE: ${{ format('build-docs-{0}.yml', variables.IPA_PLATFORM) }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user