upgrades: gitea 1.21.10 -> forgejo 7.0.0
This commit is contained in:
parent
e9bb6f67e6
commit
3bd723d6b8
3 changed files with 56 additions and 2 deletions
|
@ -49,6 +49,49 @@ function test_successful_upgrades() {
|
|||
done
|
||||
}
|
||||
|
||||
function download_gitea() {
|
||||
local version=$1
|
||||
|
||||
if ! test -f $DIR_BINARIES/gitea-$version ; then
|
||||
mkdir -p $DIR_BINARIES
|
||||
wget -O $DIR_BINARIES/gitea-$version --quiet https://dl.gitea.com/gitea/$version/gitea-$version-linux-amd64
|
||||
chmod +x $DIR_BINARIES/gitea-$version
|
||||
fi
|
||||
}
|
||||
|
||||
function start_gitea() {
|
||||
local version=$1
|
||||
|
||||
download_gitea $version
|
||||
start_forgejo_daemon $version $DIR_BINARIES/gitea-$version
|
||||
}
|
||||
|
||||
function test_gitea_upgrades() {
|
||||
stop
|
||||
for config in default ; do
|
||||
log_info "using $config app.ini"
|
||||
upgrade_reset $config
|
||||
|
||||
version=1.21.10
|
||||
log_info "run gitea $version"
|
||||
cleanup_storage
|
||||
start_s3 minio
|
||||
start_gitea $version
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $version
|
||||
|
||||
for version in 7.0-test ; do
|
||||
stop
|
||||
log_info "run forgejo $version"
|
||||
start $version
|
||||
verify_storage
|
||||
fixture_assert
|
||||
doctor_run $version
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
source $UPGRADE_DIR/test-upgrade-forgejo-database-v3.sh
|
||||
source $UPGRADE_DIR/test-pprof-upload.sh
|
||||
|
||||
|
@ -59,4 +102,5 @@ function test_upgrades() {
|
|||
run test_successful_upgrades
|
||||
run test_forgejo_database_v3_upgrades
|
||||
run test_forgejo_pprof
|
||||
run test_gitea_upgrades
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue