Instead of having an explicit vX.Y-dev version to be referenced explicitly, a binary built from source replaces the matching version. For instance, if forgejo/build-from-sources contains v9.0, * the development branch is compiled from source * the v9.0 artifact is uploaded * prior to running any test, the artificat is downloaded and used * the v9.0 binary is not downloaded from forgejo/experimental/integration because it is already present The vX.Y release is built daily and the end-to-end tests run on it. If a regression is introduced, it will be spotted within 24h. Compiling from source is used when the Forgejo runs the end-to-end suite on a specific pull request.
24 lines
788 B
Bash
24 lines
788 B
Bash
# Copyright 2024 The Forgejo Authors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
function test_packages_alpine_version() {
|
|
local alpine_version=$1 forgejo_version=$2
|
|
stop_forgejo
|
|
reset_forgejo $PACKAGES_DIR/alpine-app.ini
|
|
start_forgejo $forgejo_version
|
|
|
|
local d=$PACKAGES_DIR/alpine-$forgejo_version
|
|
local token=$(cat $DIR/forgejo-curl/token)
|
|
local url=http://${HOST_PORT}
|
|
|
|
log_info "alpine:$alpine_version & Forgejo $forgejo_version"
|
|
docker run --rm --volume $d:$d:ro --workdir $d docker.io/alpine:$alpine_version ash -c "./test.sh $url $token"
|
|
}
|
|
|
|
function test_packages_alpine() {
|
|
for alpine_version in 3.19 3.20; do
|
|
for forgejo_version in 7.0 9.0; do
|
|
test_packages_alpine_version $alpine_version $forgejo_version
|
|
done
|
|
done
|
|
}
|