mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
travis: build repositories in correct order
This commit is contained in:
parent
34ca052cd7
commit
fa3ee36b6c
@ -4,15 +4,15 @@ set -eu
|
|||||||
|
|
||||||
. "$(dirname "$0")"/common.sh
|
. "$(dirname "$0")"/common.sh
|
||||||
|
|
||||||
# Prints names of top-level directories (i.e. repositories) that has been
|
# Prints names of repositories (top-level directories), in defined order,
|
||||||
# changed/created in the specified revisions.
|
# that has been changed/created in the specified revisions.
|
||||||
changed_repos() {
|
changed_repos() {
|
||||||
local commit_ish="$1"
|
local commit_ish="$1"
|
||||||
local repos="$(find * -type d -maxdepth 0 ! -name '.*' ! -name 'scripts')"
|
|
||||||
|
|
||||||
# Print names of dirs in the current directory (it's *not* recursive)
|
local repo; for repo in main community testing non-free unmaintained; do
|
||||||
# that contain some changes and consider only dirs listed in $repos.
|
git diff-tree --exit-code "$commit_ish" -- $repo >/dev/null \
|
||||||
git diff-tree --name-only "$commit_ish" -- $repos
|
|| echo "$repo"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which
|
# Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which
|
||||||
|
Loading…
Reference in New Issue
Block a user