-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (37 loc) · 1.36 KB
/
.gitlab-ci.yml
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
variables:
BUILD_TYPE: "Release"
.build_script: &build_script
- cmake -E make_directory build-$BUILD_TYPE
- cmake -S . -B build-$BUILD_TYPE -GNinja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DRT_BUILD_TESTS=ON
- cmake --build build-$BUILD_TYPE
.test_script: &test_script
- ctest -V --test-dir build-$BUILD_TYPE
.build_and_test:
script:
- *build_script
- *test_script
test:ubuntu:24.04:
image: ubuntu:24.04
extends: .build_and_test
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- apt-get -y update
- apt-get install -y build-essential cmake curl git ninja-build libopencv-dev libvtk9-dev libvtk9-qt-dev libboost-program-options-dev libinsighttoolkit5-dev
test:ubuntu:22.04:
image: ubuntu:22.04
extends: .build_and_test
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- apt-get -y update
- apt-get install -y build-essential curl git ninja-build libopencv-dev libvtk9-dev libvtk9-qt-dev libboost-program-options-dev libinsighttoolkit5-dev
- curl -OL https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.sh
- chmod +x cmake-3.28.3-linux-x86_64.sh
- ./cmake-3.28.3-linux-x86_64.sh --skip-license --prefix=/usr/local --exclude-subdir
test:macos:
extends: .build_and_test
variables:
CMAKE_PREFIX_PATH: "/usr/local/educelab/vc-deps-1.9.0-static-debug"
tags:
- macos