[phodav: 4/6] ci: test with litmus
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [phodav: 4/6] ci: test with litmus
- Date: Thu, 27 Aug 2020 11:36:53 +0000 (UTC)
commit 86376a910833c5e595be990b7e7324fbbc715702
Author: Jakub Janků <jjanku redhat com>
Date: Sun Jul 12 12:26:46 2020 +0200
ci: test with litmus
Signed-off-by: Jakub Janků <jjanku redhat com>
.gitlab-ci.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1e975f2..c906e32 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,9 @@
image: fedora:rawhide
+stages:
+ - build
+ - test
+
variables:
DEPENDENCIES:
asciidoc
@@ -28,19 +32,27 @@ variables:
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
expire_in: 1 week
when: always
build_win:
+ stage: build
before_script:
- rm -f /etc/rpm/macros.image-language-conf
- dnf update -y --nogpgcheck
@@ -59,3 +71,18 @@ build_win:
- 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 dav://localhost:8080/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]