upgrades: run doctor check --all after each upgrade
This commit is contained in:
parent
21920b10d9
commit
6bb5e947fb
4 changed files with 13 additions and 0 deletions
|
@ -3,3 +3,4 @@
|
|||
FIXTURES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source $FIXTURES_DIR/fixtures/storage.sh
|
||||
source $FIXTURES_DIR/fixtures/doctor.sh
|
||||
|
|
7
forgejo/fixtures/doctor.sh
Normal file
7
forgejo/fixtures/doctor.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
function doctor_run() {
|
||||
local version=$1
|
||||
|
||||
forgejo_cli $version doctor check --all # --log-file -
|
||||
}
|
|
@ -7,6 +7,9 @@ HTTP_PORT = 3000
|
|||
SSH_LISTEN_PORT = 2222
|
||||
LFS_START_SERVER = true
|
||||
|
||||
[queue]
|
||||
TYPE = immediate
|
||||
|
||||
[database]
|
||||
DB_TYPE = sqlite3
|
||||
PATH = ${WORK_PATH}/forgejo.db
|
||||
|
|
|
@ -36,6 +36,7 @@ function test_successful_upgrades() {
|
|||
start $version
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $version
|
||||
|
||||
for version in 1.19 1.20 1.21 $RELEASE_NUMBERS_AND_DEV ; do
|
||||
stop
|
||||
|
@ -43,6 +44,7 @@ function test_successful_upgrades() {
|
|||
start $version
|
||||
verify_storage
|
||||
fixture_assert
|
||||
doctor_run $version
|
||||
done
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue