upgrade: RELEASE_NUMBERS is a variable with all known releases
the development branch is not build for v1.21 & v1.20 because they pre-date the hard fork and near EOL
This commit is contained in:
parent
aa83694fd7
commit
be86fe2e44
4 changed files with 23 additions and 13 deletions
|
@ -11,6 +11,11 @@
|
|||
# Everything happens in /tmp/forgejo-upgrades
|
||||
#
|
||||
|
||||
#
|
||||
# Forgejo releases for which a branch exists (7.0/forgejo etc.)
|
||||
#
|
||||
RELEASE_NUMBERS="7.0"
|
||||
|
||||
PREFIX===============
|
||||
HOST_PORT=0.0.0.0:3000
|
||||
STORAGE_PATHS="attachments avatars lfs packages repo-archive repo-avatars"
|
||||
|
@ -26,6 +31,7 @@ SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||
: ${FORGEJO_USER:=root}
|
||||
: ${FORGEJO_REPO:=fixture}
|
||||
: ${FORGEJO_PASSWORD:=admin1234}
|
||||
RELEASE_NUMBERS_AND_DEV="$(for r in $RELEASE_NUMBERS ; do echo -n $r $r-dev ; done)"
|
||||
|
||||
source $SELF_DIR/fixtures.sh
|
||||
|
||||
|
@ -65,8 +71,10 @@ function dependencies() {
|
|||
}
|
||||
|
||||
function build_all() {
|
||||
log_info 7.0.0-dev
|
||||
$SELF_DIR/../build.sh 7.0.0-dev $DIR
|
||||
for dev in $RELEASE_NUMBERS ; do
|
||||
log_info $dev-dev
|
||||
$SELF_DIR/../build.sh $dev $DIR
|
||||
done
|
||||
}
|
||||
|
||||
function retry() {
|
||||
|
@ -500,7 +508,7 @@ function test_storage_stable_s3() {
|
|||
|
||||
log_info "See also https://codeberg.org/forgejo/forgejo/issues/1338"
|
||||
|
||||
for version in 1.18 1.19 1.20.2-0 1.20.3-0 1.20 1.21 7.0 ; do
|
||||
for version in 1.18 1.19 1.20.2-0 1.20.3-0 1.20 1.21 $RELEASE_NUMBERS_AND_DEV ; do
|
||||
log_info "Forgejo $version & $s3_backend"
|
||||
stop
|
||||
reset stable-s3
|
||||
|
@ -564,7 +572,7 @@ function test_successful_upgrades() {
|
|||
log_info "using $config app.ini"
|
||||
reset $config
|
||||
|
||||
for version in 1.18 1.19 1.20.2-0 1.20.3-0 1.20 1.21 7.0 ; do
|
||||
for version in 1.18 1.19 1.20.2-0 1.20.3-0 1.20 1.21 $RELEASE_NUMBERS_AND_DEV ; do
|
||||
log_info "run $version"
|
||||
cleanup_storage
|
||||
start $version
|
||||
|
|
Loading…
Add table
Reference in a new issue