[libgda] CI: add a parallel build to expose simultaneos tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] CI: add a parallel build to expose simultaneos tests
- Date: Thu, 13 Aug 2020 02:38:30 +0000 (UTC)
commit d8e0d71769894fae7099d41c3e4297d504f0f78b
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Aug 12 21:36:42 2020 -0500
CI: add a parallel build to expose simultaneos tests
This change will use two identical build/test
processes to stress multi-threaded/simultaneos access
to dabases
.gitlab-ci.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e56ee70b..a6c8fa537 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,6 +88,28 @@ library_build:
- _build/doc/Gdaui-6.0
expire_in: 1 week
+paralel_build:
+ stage: build
+ script:
+ - export PGPASSWORD=$POSTGRES_PASSWORD
+ - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
+ - meson --prefix=/usr --buildtype=debug -Dgtk_doc=true --werror _build
+ - cd _build
+ - ninja
+ - broadwayd &
+ - GDK_BACKEND=broadway meson test
+ - ninja install
+ artifacts:
+ when: on_failure
+ paths:
+ - _build/meson-logs/testlog.txt
+ - _build/meson-logs/meson-log.txt
+ - _build/doc/C/libgda/html
+ - _build/doc/C/libgdaui/html
+ - _build/doc/Gda-6.0
+ - _build/doc/Gdaui-6.0
+ expire_in: 1 week
+
pages:
stage: deploy_doc
script:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]