Azure: Run rpmlint on Fedora

Template the autoconf phase.

Fixes: https://pagure.io/freeipa/issue/8768
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Stanislav Levin authored and Alexander Bokovoy committed 2021-03-29 10:16:12 +03:00
1 parent 7fc0c04dc4
commit 83e16a4e47
5 files changed
+23 -17

No files matched your search

+2 -2
View File
@@ -49,9 +49,9 @@
# lint is not executed during rpmbuild
# %%global with_lint 1
%if %{with lint}
%global linter_options --enable-pylint --with-jslint
%global linter_options --enable-pylint --with-jslint --enable-rpmlint
%else
%global linter_options --disable-pylint --without-jslint
%global linter_options --disable-pylint --without-jslint --disable-rpmlint
%endif
# Include SELinux subpackage
+3 -15
View File
@@ -19,11 +19,7 @@ jobs:
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --privileged --env container=docker
steps:
- template: templates/${{ variables.PREPARE_BUILD_TEMPLATE }}
- script: |
set -e
echo "Running autoconf generator"
./autogen.sh
displayName: Configure the project
- template: templates/${{ variables.AUTOCONF_TEMPLATE }}
- script: |
set -e
git update-ref refs/heads/$(System.PullRequest.TargetBranch) origin/$(System.PullRequest.TargetBranch)
@@ -70,11 +66,7 @@ jobs:
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --privileged --env container=docker
steps:
- template: templates/${{ variables.PREPARE_BUILD_TEMPLATE }}
- script: |
set -e
echo "Running autoconf generator"
./autogen.sh
displayName: Configure the project
- template: templates/${{ variables.AUTOCONF_TEMPLATE }}
- script: |
set -e
echo "Running make target 'lint'"
@@ -119,11 +111,7 @@ jobs:
steps:
- template: templates/${{ variables.PREPARE_BUILD_TEMPLATE }}
- template: templates/${{ variables.PREPARE_WEBUI_TEMPLATE }}
- script: |
set -e
echo "Running autoconf generator"
./autogen.sh
displayName: Configure the project
- template: templates/${{ variables.AUTOCONF_TEMPLATE }}
- script: |
set -e
echo "Running WebUI unit tests"
@@ -0,0 +1,12 @@
parameters:
options: ''
steps:
- script: |
set -e
echo "Running autoconf generator"
./autogen.sh \
${{ parameters.options }} \
--enable-rpmlint \
displayName: Configure the project
@@ -6,6 +6,9 @@ variables:
# the Dockerfile to build Docker image for running IPA tests
DOCKER_DOCKERFILE: ${{ format('Dockerfile.build.{0}', variables.IPA_PLATFORM) }}
# the template to autoconf the project
AUTOCONF_TEMPLATE: ${{ format('autoconf-{0}.yml', variables.IPA_PLATFORM) }}
# the template to install IPA's buildtime dependencies
PREPARE_BUILD_TEMPLATE: ${{ format('prepare-build-{0}.yml', variables.IPA_PLATFORM) }}
@@ -9,6 +9,9 @@ variables:
# the Dockerfile to build Docker image for running IPA tests
DOCKER_DOCKERFILE: 'Dockerfile.build.rawhide'
# the template to autoconf the project
AUTOCONF_TEMPLATE: ${{ format('autoconf-{0}.yml', variables.IPA_PLATFORM) }}
# the template to install IPA's buildtime dependencies
PREPARE_BUILD_TEMPLATE: ${{ format('prepare-build-{0}.yml', variables.IPA_PLATFORM) }}