-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
65 lines (58 loc) · 1.6 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt-get update -yq && apt-get install -y curl lsb-release lintian
- export DISTRO_CODENAME=`lsb_release -cs` && echo Using distro $DISTRO_CODENAME
- echo "deb http://apt.roboception.de/stable $DISTRO_CODENAME main" > /etc/apt/sources.list.d/roboception-stable.list
- if [ "$TESTING_DEBS" = "true" ]; then echo "deb http://apt.roboception.de/testing $DISTRO_CODENAME main" > /etc/apt/sources.list.d/roboception-testing.list ; fi
- curl http://apt.roboception.de/archive.key | apt-key add -
- apt-get update -yq && apt-get install -y libopencv-dev rc-genicam-api
variables:
GET_SOURCES_ATTEMPTS: 3
#########################
# Templates using anchors
#########################
.amd64_focal_t: &amd64_focal_job
image: registry.roboception.de/tools/docker_images:focal-buildimage
tags:
- amd64
- docker
.amd64_jammy_t: &amd64_jammy_job
image: registry.roboception.de/tools/docker_images:jammy-buildimage
tags:
- amd64
- docker
#############
# Templates
#############
.test:
stage: test
script:
- mkdir build && cd build
- cmake ..
- make -j 4
- CTEST_OUTPUT_ON_FAILURE=1 make test
##############
#### Jobs ####
##############
gen_dox:
<<: *amd64_focal_job
variables:
TESTING_DEBS: "true"
stage: deploy
script:
- apt-get install -y doxygen ncftp
- mkdir build && cd build
- cmake ..
- make doc
- upload_dox.sh doc/html
only:
- master
- tags
tags:
- docs
test:focal:amd64:
<<: *amd64_focal_job
extends: .test
test:jammy:amd64:
<<: *amd64_jammy_job
extends: .test