1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00
gitea_packaging/.gitlab-ci/test.sh

12 lines
327 B
Bash
Raw Normal View History

2020-06-20 08:55:39 +00:00
#!/bin/bash
VERSION=$(echo "${CI_COMMIT_TAG#*v}" | cut -d'-' -f1)
PATCHLEVEL=$(echo "${CI_COMMIT_TAG}" | cut -d'-' -f2)
apt-get -qq update
apt-get -qqy install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
systemctl start gitea
sleep 10
if ! systemctl is-active gitea; then
journalctl -lu gitea --no-pager
fi