This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
forked from GNOME/glib-networking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
77 lines (73 loc) · 1.96 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
76
77
image: registry.gitlab.gnome.org/gnome/glib-networking/master:v19
fedora-x86_64:
stage: build
variables:
# Remove for PKCS11 logs, otherwise generates a lot of noise hitting gitlab's limit
PKCS11SPY_PATH: disabled
script:
- cp .gitlab-ci/lcovrc ~/.lcovrc
- meson --prefix=$HOME/glib-networking-installed
-Db_coverage=true
-Dgnutls=enabled
-Dopenssl=enabled
-Dlibproxy=enabled
-Dgnome_proxy=enabled
-Dwerror=true
_build/
- meson compile -C _build/
- meson test -v -C _build/ --repeat=1000
- meson install -C _build/
- ninja -C _build coverage-html
artifacts:
paths:
- _build/test-results
- _build/meson-logs/coveragereport
when: always
coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
fedora-x86_64-asan:
tags: [ asan ]
stage: build
variables:
PKCS11SPY_PATH: disabled
ASAN_OPTIONS: fast_unwind_on_malloc=0
script:
- meson -Db_sanitize=address
-Dgnutls=enabled
-Dopenssl=enabled
-Dlibproxy=enabled
-Dgnome_proxy=enabled
-Dwerror=true
_build/
- meson compile -C _build/
- meson test --verbose --timeout-multiplier=10 -C _build/
artifacts:
paths:
- _build/test-results
when: on_failure
fedora-x86_64-scan-build:
stage: build
script:
- meson -Dgnutls=enabled
-Dopenssl=enabled
-Dlibproxy=enabled
-Dgnome_proxy=enabled
-Dwerror=true
_build/
- scan-build meson compile -C _build/
- bash -c 'if [[ -n "$(ls -A _build/meson-logs/scanbuild/)" ]]; then echo "Scan build log found, assuming defects exist"; exit 1; fi'
artifacts:
paths:
- _build/meson-logs/scanbuild
when: on_failure
vs2017-x64:
stage: build
except:
- tags
tags:
- win32-ps
script:
- .gitlab-ci/test-msvc.bat
artifacts:
paths:
- build/test-results
when: on_failure