Added Ubuntu 24.04 tests
Co-authored-by: Jules Pénuchot <jules@penuchot.com> See merge request oss/rotgen!33
This commit is contained in:
parent
8fcd92ce1a
commit
991967761d
6 changed files with 254 additions and 142 deletions
16
ci-cd/ci-setup.sh
Executable file
16
ci-cd/ci-setup.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
export DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
apt update -y
|
||||
apt upgrade -y
|
||||
apt install -y \
|
||||
automake \
|
||||
build-essential \
|
||||
clang-14 \
|
||||
cmake \
|
||||
gdb \
|
||||
libc++-14-dev \
|
||||
libc++abi-14-dev \
|
||||
libeigen3-dev \
|
||||
ninja-build
|
||||
14
ci-cd/test-wrapper.sh
Executable file
14
ci-cd/test-wrapper.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd build/$CMAKE_PRESET
|
||||
|
||||
ctest --output-on-failure
|
||||
CTEST_EXIT_CODE=$?
|
||||
|
||||
# If the program fails, show the backtracs
|
||||
if [ $CTEST_EXIT_CODE -ne '0' ]; then
|
||||
gdb -ex run -ex bt --args ctest --output-on-failure
|
||||
fi
|
||||
|
||||
# Forward exit code
|
||||
exit $CTEST_EXIT_CODE
|
||||
Loading…
Add table
Add a link
Reference in a new issue