Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f799dc86 authored by hhakim's avatar hhakim
Browse files

Fix CPack .deb/.rpm generation error without failing the gitlab pipeline.

This kind of error 'CPack Error: Error when generating package: FAUST' wasn't detected, so now we verify explicitly that the RPM/DEB file exists otherwise exit with error status.
parent 3d035a25
Branches
Tags
No related merge requests found
......@@ -19,6 +19,8 @@ find ./ -name "*.o" -delete
cpack -G RPM -C CPackConfig.cmake
# remove package temporary files
rm -Rf _CPack_Packages/x86_64/RPM
[[ ! -r $(ls "faust-$FAUST_VERSION"*rpm) ]] && echo "Failed to generate RPM package" && exit 2
cpack -G DEB -C CPackConfig.cmake
rm -Rf _CPack_Packages/x86_64/DEB
[[ ! -r $(ls "faust-$FAUST_VERSION"*deb) ]] && echo "Failed to generate DEB package" && exit 3
[[ -n "$COPY_PKG_TO_HOME" ]] && cp faust-$FAUST_VERSION*rpm faust-$FAUST_VERSION*.deb $HOME || exit 0
......@@ -26,6 +26,8 @@ find ./ -name "*.o" -delete # (more space for rpm/deb generation)
cpack -G RPM -C CPackConfig.cmake
# remove package temporary files
rm -Rf _CPack_Packages/x86_64/RPM
[[ ! -r $(ls "faust-$FAUST_VERSION"*rpm) ]] && echo "Failed to generate RPM package" && exit 2
cpack -G DEB -C CPackConfig.cmake
rm -Rf _CPack_Packages/x86_64/DEB
[[ ! -r $(ls "faust-$FAUST_VERSION"*deb) ]] && echo "Failed to generate DEB package" && exit 3
[[ -n "$COPY_PKG_TO_HOME" ]] && cp faust-$FAUST_VERSION*rpm faust-$FAUST_VERSION*deb $HOME || exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment