diff options
| author | crystal <crystal@noreply.codeberg.org> | 2023-07-02 15:46:48 -0600 |
|---|---|---|
| committer | crystal <crystal@noreply.codeberg.org> | 2023-07-02 15:46:48 -0600 |
| commit | 8376162acf353712d00d2764a272e9272299ee14 (patch) | |
| tree | b7294e9ea19f296e07480152012f2f77ff77b8e1 | |
| parent | 73da6b9d0d32fb7312037e2c209c45b91661c15b (diff) | |
add ci test for repo
| -rwxr-xr-x | .ci-make.sh | 14 | ||||
| -rw-r--r-- | .crystalintegration.yml | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/.ci-make.sh b/.ci-make.sh index 6b3268a..83b1de3 100755 --- a/.ci-make.sh +++ b/.ci-make.sh @@ -116,5 +116,19 @@ case "$1" in curl http://localhost:3000/ exit $? ;; + "install-repo-test") + apt update + apt install -y ./"$2" + apt update + apt upgrade -y + apt update + apt install "$3" + sudo -u forgejo USER=forgejo \ + HOME=/var/lib/forgejo GITEA_WORK_DIR=/var/lib/forgejo \ + forgejo --web --config /etc/fogejo/app.ini & + sleep 10 + curl http://localhost:3000/ + exit $? + ;; esac diff --git a/.crystalintegration.yml b/.crystalintegration.yml index 274b3d6..fcc249a 100644 --- a/.crystalintegration.yml +++ b/.crystalintegration.yml @@ -297,6 +297,12 @@ pipeline: - ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb when: event: [ tag ] + + test-repo-bookworm-sqlite: + image: *deb_test_image_bookworm + group: pkg-test-5 + commands: + - ./.ci-make.sh install-repo-test ./repo-deb/forgejo-deb-repo_0-0_all.deb forgejo-sqlite upload-crystalcommit: image: woodpeckerci/plugin-gitea-release |
