the packages tests control which Forgejo version they run against so they can test a feature on version X+1 and not on version X
19 lines
503 B
Bash
19 lines
503 B
Bash
#!/bin/sh
|
|
# Copyright 2024 The Forgejo Authors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
function test_packages_alpine_v1.21() {
|
|
stop_daemon forgejo
|
|
reset_forgejo $PACKAGES_DIR/alpine-app.ini
|
|
start_forgejo 1.21
|
|
|
|
local d=$PACKAGES_DIR/alpine
|
|
local token=$(cat $DIR/forgejo-curl/token)
|
|
local url=http://${HOST_PORT}
|
|
|
|
docker run --rm --volume $d:$d:ro --workdir $d docker.io/alpine:3.19 ash -c "./test.sh $url $token"
|
|
}
|
|
|
|
function test_packages_alpine() {
|
|
test_packages_alpine_v1.21
|
|
}
|