Skip to content

Commit f385ece

Browse files
Prevent the building of the default variant for each Travis stage
1 parent 7823eba commit f385ece

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test-build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ for version in "${versions[@]}"; do
4949
tag=$(get_tag "$version")
5050
full_version=$(get_full_version "$version")
5151

52-
build "$version" "" "$tag"
53-
5452
# Get supported variants according to the target architecture.
5553
# See details in function.sh
5654
IFS=' ' read -ra variants <<< "$(IFS=','; get_variants "$(dirname "$version")" "$2")"
5755

56+
if [[ "${variants[*]}" =~ "default" ]]; then
57+
build "$version" "" "$tag"
58+
fi
59+
5860
for variant in "${variants[@]}"; do
5961
# Skip non-docker directories
6062
[ -f "$version/$variant/Dockerfile" ] || continue

0 commit comments

Comments
 (0)