[libsoup/autobahn-integration-new: 22/35] ci: add step to run autobahn tests




commit 331ed87ef51362b1c9d52fb802bc03c8a08e1818
Author: Diego Pino Garcia <dpino igalia com>
Date:   Wed Jan 20 21:23:04 2021 +0800

    ci: add step to run autobahn tests

 .gitlab-ci.yml             | 16 ++++++++++++++--
 tests/autobahn/meson.build |  4 +++-
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5c95614c..18de3d45 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ fedora-test:
     - cp .gitlab-ci/lcovrc ~/.lcovrc
     - meson _build -Db_coverage=true -Dauto_features=enabled
     - meson compile -C _build
-    - meson test -C _build --verbose
+    - meson test --no-suite autobahn -C _build --verbose
     - ninja -C _build coverage-html
   artifacts:
     reports:
@@ -32,6 +32,18 @@ fedora-test:
       - "_build/meson-logs/coveragereport"
   coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/'
 
+fedora-autobahn:
+  extends: .build
+  script:
+    - meson test -C _build --suite autobahn --verbose
+  only:
+    changes:
+      - "libsoup/"
+      - "tests/autobahn"
+  artifacts:
+    paths:
+      - "_build/tests/autobahn/autobahn-report"
+
 fedora-scan:
   extends: .build
   script:
@@ -52,7 +64,7 @@ fedora-asan:
     SOUP_TEST_NO_IPV6: 1
   script:
     - meson _build -Dauto-features=enabled -Db_sanitize=address -Dintrospection=disabled -Dvapi=disabled
-    - meson test -C _build --verbose --timeout-multiplier=10
+    - meson test --no-suite autobahn -C _build --verbose --timeout-multiplier=10
   artifacts:
     when: on_failure
     paths:
diff --git a/tests/autobahn/meson.build b/tests/autobahn/meson.build
index 20370b0b..c308f333 100644
--- a/tests/autobahn/meson.build
+++ b/tests/autobahn/meson.build
@@ -3,4 +3,6 @@ deps = [
   libsoup_dep
 ]
 
-executable('soup-autobahn-test-client', 'soup-autobahn-test-client.c', dependencies: deps)
+client = executable('soup-autobahn-test-client', 'soup-autobahn-test-client.c', dependencies: deps)
+
+test('soup-autobahn-test-client', client, suite: 'autobahn', timeout: 3600)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]