Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions buildlib/tools/builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ build_release_pkg() {
cd $subdir
dpkg-buildpackage -us -uc
)
echo "==== Test install DEB (dry-run) ===="
apt-get install -s -y ./*.deb
else
echo "==== Build RPM ===="
echo "$PWD"
Expand All @@ -91,6 +93,13 @@ build_release_pkg() {
azure_log_error "Release build depends on CUDA while it should not"
exit 1
fi
echo "==== Test install RPM (dry-run) ===="
if rpm -q rpm >/dev/null 2>&1; then
rpm -Uvh --test ${PWD}/rpm-dist/*/*.rpm
else
azure_log_warning "Skip RPM install test: rpm db not readable as non-root"
azure_complete_with_issues "Skip RPM install test: rpm db not readable as non-root"
fi
echo "==== Build debug RPM ===="
${WORKSPACE}/contrib/buildrpm.sh -s -b -d --nodeps --define "_topdir $PWD/debug"
fi
Expand Down
Loading