-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCI-linux.sh
More file actions
executable file
·71 lines (51 loc) · 1.67 KB
/
CI-linux.sh
File metadata and controls
executable file
·71 lines (51 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# set -o verbose
# install linuxdeploy
wget -nc https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-x86_64.AppImage
wget -nc https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20240109-1/linuxdeploy-plugin-qt-x86_64.AppImage
chmod u+x ./linuxdeploy-x86_64.AppImage
chmod u+x ./linuxdeploy-plugin-qt-x86_64.AppImage
# Check versions
qmake -v
cmake --version
ninja --version
pandoc --version
./linuxdeploy-x86_64.AppImage --version
./linuxdeploy-plugin-qt-x86_64.AppImage --plugin-version
# Build BrümSchtick
mkdir cmakebuild
cd cmakebuild
cmake .. \
-DCMAKE_PREFIX_PATH="cmake/packages;$QT_ROOT_DIR" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--fatal-warnings" \
-DTB_ENABLE_CCACHE=0 \
-DTB_ENABLE_PCH=0 \
-DCMAKE_INSTALL_PREFIX=/usr \
|| exit 1
cmake --build . --config Release -- -j $(nproc) || exit 1
# Run tests (wxgtk needs an X server running for the app to initialize)
BUILD_DIR=$(pwd)
cd "$BUILD_DIR/lib/KdLib/test"
./KdLibTest || exit 1
cd "$BUILD_DIR/lib/UpdateLib/test"
./UpdateLibTest || exit 1
cd "$BUILD_DIR/lib/TbBaseLib/test"
./TbBaseLibTest || exit 1
cd "$BUILD_DIR/lib/TbBaseLib/test-utils/test"
./TbBaseTestUtilsLibTest || exit 1
cd "$BUILD_DIR/lib/TbElLib/test"
./TbElLibTest || exit 1
cd "$BUILD_DIR/lib/TbFsLib/test"
./TbFsLibTest || exit 1
cd "$BUILD_DIR/lib/TbFsLib/test-utils/test"
./TbFsTestUtilsLibTest || exit 1
cd "$BUILD_DIR/lib/VmLib/test"
./VmLibTest || exit 1
cd "$BUILD_DIR/common/test"
xvfb-run -a ./common-test || exit 1
cd "$BUILD_DIR"
ldd --verbose ./app/brumschtick
cpack || exit 1
./app/generate_checksum.sh