From d5deacc9238305542d07ce8fb44b0545db977452 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 12 Feb 2022 18:27:17 +0100 Subject: [PATCH] Adding matrix to CI --- .gitlab-ci.yml | 9 +++++++++ podman-matrix/.gitlab-ci.yml | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 podman-matrix/.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4add5f7..98300d3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,3 +9,12 @@ trigger_jitsi: rules: - changes: - podman-jitsi/* + +trigger_matrix: + stage: triggers + trigger: + include: podman-matrix/.gitlab-ci.yml + strategy: depend + rules: + - changes: + - podman-matrix/* diff --git a/podman-matrix/.gitlab-ci.yml b/podman-matrix/.gitlab-ci.yml new file mode 100644 index 0000000..ff83fda --- /dev/null +++ b/podman-matrix/.gitlab-ci.yml @@ -0,0 +1,18 @@ +before_script: + - podman pod exists podman-matrix && podman pod rm --force podman-matrix + - rm -f ~/.config/systemd/user/pod-podman-matrix.service && systemctl --user daemon-reload + - podman volume exists matrixdotorg_synapse-data && podman volume rm matrixdotorg_synapse-data + - podman volume exists matrixdotorg_synapse-pgsql && podman volume rm matrixdotorg_synapse-pgsql + +matrix: + stage: test + script: + - cd podman-matrix + - GARBAYE_MATRIX_POSTGRES_PASSWORD=WHATEVERCIDBPASSWORD GARBAYE_MATRIX_ENV_LISTENPORT=18086 ./05_freshinstall.sh + - ./20_enable.sh + - ./30_start.sh && sleep 10 + - ./40_stop.sh + - ./70_disable.sh + - ./80_destroy.sh + - podman volume rm matrixdotorg_synapse-data + - podman volume rm matrixdotorg_synapse-pgsql