upgrades: add Gitea 1.22.0 & 1.21.11 to Forgejo 8.0-test
This commit is contained in:
parent
9cfd043b8a
commit
c1ce4361b9
2 changed files with 63 additions and 45 deletions
|
@ -30,65 +30,50 @@ function test_successful_upgrades() {
|
|||
log_info "using $config"
|
||||
upgrade_reset $config
|
||||
|
||||
version=1.21
|
||||
version=1.21
|
||||
log_info "run $version"
|
||||
cleanup_storage
|
||||
start $version
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
start $version
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
|
||||
for version in $RELEASE_NUMBERS_AND_DEV ; do
|
||||
stop
|
||||
log_info "run $version"
|
||||
start $version
|
||||
verify_storage
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
done
|
||||
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 $UPGRADE_DIR/default-app.ini ; do
|
||||
log_info "using $config"
|
||||
local config=$UPGRADE_DIR/default-app.ini
|
||||
(
|
||||
echo gitea 1.21 forgejo 7.0-test
|
||||
echo gitea 1.21 forgejo 8.0-test
|
||||
echo gitea 1.22 forgejo 8.0-test
|
||||
) | while read gitea gitea_version forgejo forgejo_version ; do
|
||||
log_info "upgrading from Gitea $gitea_version to Forgejo $forgejo_version"
|
||||
stop
|
||||
upgrade_reset $config
|
||||
|
||||
version=1.21.10
|
||||
log_info "run gitea $version"
|
||||
log_info "run Gitea $gitea_version"
|
||||
cleanup_storage
|
||||
start_s3 minio
|
||||
start_gitea $version
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
start_s3 minio
|
||||
start_gitea $gitea_version $config
|
||||
fixture_create
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
|
||||
for version in 7.0-test ; do
|
||||
stop
|
||||
log_info "run forgejo $version"
|
||||
start $version
|
||||
verify_storage
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
done
|
||||
stop
|
||||
log_info "run Forgejo $forgejo_version"
|
||||
start $forgejo_version
|
||||
verify_storage
|
||||
fixture_assert
|
||||
doctor_run $config
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue