From 4995a5ef14ef6b27cf05baff98a643da4f0ce98f Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 12 Feb 2022 19:18:19 +0100 Subject: [PATCH] Adding seafile to CI --- .gitlab-ci.yml | 9 +++++++++ podman-seafile/.gitlab-ci.yml | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 podman-seafile/.gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8c7142..426abbc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,3 +27,12 @@ trigger_matrix: rules: - changes: - podman-matrix/* + +trigger_seafile: + stage: triggers + trigger: + include: podman-seafile/.gitlab-ci.yml + strategy: depend + rules: + - changes: + - podman-seafile/* diff --git a/podman-seafile/.gitlab-ci.yml b/podman-seafile/.gitlab-ci.yml new file mode 100644 index 0000000..64606e7 --- /dev/null +++ b/podman-seafile/.gitlab-ci.yml @@ -0,0 +1,18 @@ +before_script: + - podman pod exists podman-seafile && podman pod rm --force podman-seafile + - rm -f ~/.config/systemd/user/pod-podman-seafile.service && systemctl --user daemon-reload + - podman volume exists podman-seafile_seafile-db && podman volume rm podman-seafile_seafile-db + - podman volume exists podman-seafile_seafile-data && podman volume rm podman-seafile_seafile-data + +seafile: + stage: test + script: + - cd podman-seafile + - GARBAYE_SEAFILE_MYSQL_ROOT_PASSWORD=ecruebdfklj GARBAYE_SEAFILE_ENV_LISTENPORT=18082 ./05_freshinstall.sh + - ./20_enable.sh + - ./30_start.sh && sleep 10 + - ./40_stop.sh + - ./70_disable.sh + - ./80_destroy.sh + - podman volume rm podman-seafile_seafile-db + - podman volume rm podman-seafile_seafile-data