Skip to content

Commit

Permalink
CI: Check for warnings from rpmbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Jul 7, 2020
1 parent 6e56c21 commit 26375ed
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions buildlib/azure-pipelines-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ stages:
# Test RPM build
- job: build_rpm
displayName: build tarball and source rpm
displayName: Build tarball and source rpm
container: fedora
steps:
- checkout: self
Expand All @@ -144,8 +144,15 @@ stages:
set -eE
gcc --version
./contrib/configure-release
./contrib/buildrpm.sh -s -t -b
displayName: Build tarball
stdbuf -e0 -o0 ./contrib/buildrpm.sh -s -t -b |& tee rpmbuild.log
pattern='^warning: '
if grep -q "$pattern" rpmbuild.log; then
echo "rpm build generated warnings:"
grep "$pattern" rpmbuild.log
echo "##vso[task.logissue type=error]rpm build generated warnings"
echo "##vso[task.complete result=Failed;]"
fi
displayName: Configure source and build RPM
- stage: Tests
dependsOn: [Codestyle]
Expand Down

0 comments on commit 26375ed

Please sign in to comment.