forked from GNOME/phodav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
94 lines (88 loc) · 2.08 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
image: fedora:rawhide
stages:
- build
- test
variables:
DEPENDENCIES:
asciidoc
avahi-gobject-devel
gcc
gcc-c++
gettext
git
libsoup-devel
meson
systemd-devel
systemd-units
xmlto
WIN_DEPENDENCIES:
dos2unix
gcc
gcc-c++
gettext
git
meson
mingw32-libsoup
mingw64-libsoup
mingw32-readline
mingw64-readline
msitools
build:
stage: build
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
- mkdir dev
script:
- meson build
- ninja -C build dist
# avahi is not needed to test with litmus, so build without it,
# otherwise we would need another image with systemd
- meson --prefix=$(pwd)/dev -Davahi=disabled build-no-avahi
- ninja -C build-no-avahi install
artifacts:
paths:
- build/meson-logs/*.txt
- dev
- build-no-avahi/tests/virtual-dir-server
expire_in: 1 week
when: always
build_win:
stage: build
before_script:
- rm -f /etc/rpm/macros.image-language-conf
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $WIN_DEPENDENCIES
script:
- mkdir w32 && cd w32 && mingw32-meson -Dgtk_doc=disabled && ninja && sh -x data/make-msi.sh
- pwd
- ls
- cd ..
- mkdir w64 && cd w64 && mingw64-meson -Dgtk_doc=disabled && ninja && sh -x data/make-msi.sh
artifacts:
paths:
- w32/*.msi
- w64/*.msi
- w32/meson-logs/*.txt
- w64/meson-logs/*.txt
expire_in: 1 week
when: always
litmus:
stage: test
dependencies:
- build
before_script:
- dnf install -y litmus libsoup nmap-ncat
variables:
TESTS: basic copymove props locks http
script:
- export LD_LIBRARY_PATH=$(pwd)/dev/lib64/
- ./dev/bin/chezdav &
# wait for the port to open
- while ! nc -z localhost 8080; do sleep 1s; done
- litmus --keep-going dav://localhost:8080/
- kill $!
# check that virtual root works as well
- ./build-no-avahi/tests/virtual-dir-server &
- while ! nc -z localhost 8080; do sleep 1s; done
- litmus dav://localhost:8080/