mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 15:19:09 +01:00
1f8e6b6e31
* specify the version targeted by the pull request. The end-to-end tests previously compiled all known branches which was a waste. The pull request now must specify which version it is targeting so that only this version is recompiled and used for testing. * when building the daily releases, use the release from the integration organization to ensure the tests are run against the latest build. Clarify in a comment why the lookup order of organizations is reversed in this particular case. Refs: https://code.forgejo.org/forgejo/end-to-end/pulls/239
22 lines
479 B
Bash
Executable file
22 lines
479 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
end_to_end=$1
|
|
end_to_end_pr=$2
|
|
forgejo=$3
|
|
forgejo_ref=$4
|
|
|
|
cd $end_to_end
|
|
date >last-upgrade
|
|
organizations=lib/ORGANIZATIONS
|
|
if ! test -f $organizations; then
|
|
echo "$organizations file not found"
|
|
false
|
|
fi
|
|
#
|
|
# Inverse the order of lookup because the goal in the release built
|
|
# pipeline is to test the latest build, if available, instead of the
|
|
# stable version by the same version.
|
|
#
|
|
echo forgejo-integration forgejo-experimental forgejo >$organizations
|