aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/build-pkgs
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-01-08 13:19:15 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-01-08 13:19:15 +0100
commitfa3ee36b6cb845e1e0f59a0073f658e59e6a9f3c (patch)
treeb133ac82e037f16195b3fdd4b03bedcba01af020 /.travis/build-pkgs
parent34ca052cd7f9e3c8a040026f1c765dae1a1a7a62 (diff)
downloadaports-fa3ee36b6cb845e1e0f59a0073f658e59e6a9f3c.tar.gz
aports-fa3ee36b6cb845e1e0f59a0073f658e59e6a9f3c.tar.bz2
aports-fa3ee36b6cb845e1e0f59a0073f658e59e6a9f3c.tar.xz
travis: build repositories in correct order
Diffstat (limited to '.travis/build-pkgs')
-rwxr-xr-x.travis/build-pkgs12
1 files changed, 6 insertions, 6 deletions
diff --git a/.travis/build-pkgs b/.travis/build-pkgs
index 8dcf8ba21e..3d20f0754c 100755
--- a/.travis/build-pkgs
+++ b/.travis/build-pkgs
@@ -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