add ci test for repo
This commit is contained in:
parent
73da6b9d0d
commit
8376162acf
14
.ci-make.sh
14
.ci-make.sh
|
@ -116,5 +116,19 @@ case "$1" in
|
||||||
curl http://localhost:3000/
|
curl http://localhost:3000/
|
||||||
exit $?
|
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
|
esac
|
||||||
|
|
||||||
|
|
|
@ -297,6 +297,12 @@ pipeline:
|
||||||
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
- ./.ci-make.sh install-run-test ./forgejo-bin_*_amd64.deb
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
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:
|
upload-crystalcommit:
|
||||||
image: woodpeckerci/plugin-gitea-release
|
image: woodpeckerci/plugin-gitea-release
|
||||||
|
|
Loading…
Reference in a new issue