add ci test for repo

This commit is contained in:
crystal 2023-07-02 15:46:48 -06:00
parent 73da6b9d0d
commit 8376162acf
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
2 changed files with 20 additions and 0 deletions

View file

@ -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