Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2330 Refactor ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
khromenokroman committed Sep 5, 2024
1 parent f313234 commit 1b1a088
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/ci/build-test-ubuntu-support-systemd-integrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ msg() {
printf "\033[1;32m%s: %s\033[0m\n" ${FUNCNAME[1]} "$1"
}

WORKSPACE=$(git rev-parse --show-toplevel)
DIR_BUILD="build"

msg "Create unit file"
echo -e "[Unit]\nDescription=Test application roudi\n\n[Service]\nType=notify\nRestartSec=10\nRestart=always\nExecStart=/usr/local/bin/iox-roudi\nTimeoutStartSec=10\nWatchdogSec=5\n\n[Install]\nWantedBy=multi-user.target" | tee /usr/lib/systemd/system/test_iox.service > /dev/null
echo -e "[Unit]\nDescription=Test application roudi\n\n[Service]\nType=notify\nRestartSec=10\nRestart=always\nExecStart=${WORKSPACE}/${DIR_BUILD}/iox-roudi\nTimeoutStartSec=10\nWatchdogSec=5\n\n[Install]\nWantedBy=multi-user.target" | tee /usr/lib/systemd/system/test_iox.service > /dev/null

msg "Show unit"
cat /usr/lib/systemd/system/test_iox.service
Expand Down
1 change: 1 addition & 0 deletions tools/ci/build-test-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ $(clang --version)"

msg "building sources"
./tools/iceoryx_build_test.sh build-strict build-all out-of-tree build-shared test-add-user ${BUILD_32BIT}
cd ./build

msg "building debian package"
./tools/iceoryx_build_test.sh package ${BUILD_32BIT}
Expand Down
2 changes: 1 addition & 1 deletion tools/iceoryx_build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ COMPONENTS="iceoryx_platform iceoryx_hoofs iceoryx_posh iceoryx_introspection ic
TOOLCHAIN_FILE=""
CMAKE_C_FLAGS=""
CMAKE_CXX_FLAGS=""
USE_SYSTEMD_FLAGS=""
USE_SYSTEMD_FLAGS="OFF"

while (( "$#" )); do
case "$1" in
Expand Down

0 comments on commit 1b1a088

Please sign in to comment.