Commit fa3ee36b authored by Jakub Jirutka's avatar Jakub Jirutka

travis: build repositories in correct order

parent 34ca052c
......@@ -4,15 +4,15 @@ set -eu
. "$(dirname "$0")"/common.sh
# Prints names of top-level directories (i.e. repositories) that has been
# changed/created in the specified revisions.
# Prints names of repositories (top-level directories), in defined order,
# that has been changed/created in the specified revisions.
changed_repos() {
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)
# that contain some changes and consider only dirs listed in $repos.
git diff-tree --name-only "$commit_ish" -- $repos
local repo; for repo in main community testing non-free unmaintained; do
git diff-tree --exit-code "$commit_ish" -- $repo >/dev/null \
|| echo "$repo"
done
}
# Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment