-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Move cpack to another script (#285)
The cpack was creating long delays on builds that did not require it. This commit fixes this and another quirks: - Move cpack command to a different script. - Remove WORKSPACE variable as conflicting with Jenkins environment. - Set the same build type on coverage than in test. - Allow for additional arguments to make from the command line. Signed-off-by: Baldor <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
PROJECT_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/../..")" | ||
build_dir="${PROJECT_DIR}/build/saunafs-release" | ||
|
||
if [ -f "${build_dir}/CPackConfig.cmake" ]; then | ||
nice cpack -B "${build_dir}" --config "${build_dir}/CPackConfig.cmake" -j "$(nproc)" | ||
else | ||
warn "No CPack configuration found in ${build_dir}. Skipping packaging." | ||
fi |