forked from caspermeijn/kdsoap-ws-discovery-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
75 lines (71 loc) · 2.31 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
66
67
68
69
70
71
72
73
74
75
# Copyright (C) 2019-2020 Casper Meijn <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
fedora:
stage: build
image: registry.gitlab.com/caspermeijn/docker-images/fedora-build-onvifviewer:latest
before_script:
- cd ..
- git clone https://github.com/KDAB/KDSoap.git
- cd KDSoap && git checkout kdsoap-1.9 && cd ..
- mkdir build-KDSoap
- cd build-KDSoap/
- cmake ../KDSoap/ -DCMAKE_INSTALL_PREFIX=/usr/local
- make
- make install
- cd ..
- mkdir build-kdsoap-ws-discovery-client
- cd build-kdsoap-ws-discovery-client
script:
- cmake $CI_PROJECT_DIR
- make
- make install
- ctest --verbose
fedora-clang:
stage: build
image: fedora:31
variables:
CC: clang
CXX: clang++
before_script:
- dnf install -y 'dnf-command(copr)'
- dnf copr -y enable caspermeijn/kdsoap
- dnf install -y git cmake ninja-build clang clang-tools-extra clazy extra-cmake-modules qt5-qtbase-devel kf5-kcoreaddons-devel kdsoap-devel
- cd ..
- mkdir build
- cd build
script:
- cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON $CI_PROJECT_DIR
- ninja
- cd $CI_PROJECT_DIR && clang-tidy -p ../build/compile_commands.json **/*.cpp
- cd $CI_PROJECT_DIR && clazy-standalone -p ../build/compile_commands.json -checks=level0,level1,level2 **/*.cpp
pages:
image: registry.gitlab.com/caspermeijn/docker-images/fedora-build-onvifviewer:latest
before_script:
- cd ..
- git clone https://github.com/KDAB/KDSoap.git
- cd KDSoap && git checkout kdsoap-1.9 && cd ..
- mkdir build-KDSoap
- cd build-KDSoap/
- cmake ../KDSoap/ -DCMAKE_INSTALL_PREFIX=/usr/local
- make
- make install
- cd ..
- mkdir build-kdsoap-ws-discovery-client
- cd build-kdsoap-ws-discovery-client
script:
- cmake $CI_PROJECT_DIR
- make docs
- mv docs/html/ $CI_PROJECT_DIR/public/
artifacts:
paths:
- public
only:
- master
reuse:
image:
name: fsfe/reuse:latest
entrypoint: [""]
stage: test
script:
- reuse lint || echo "Always report as successful. For now this is a informational test"