File tree 1 file changed +25
-1
lines changed 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,31 @@ function build() {
44
44
fatal " Build of ${full_tag} failed!"
45
45
fi
46
46
info " Build of ${full_tag} succeeded."
47
+ }
48
+
49
+ function test_image() {
50
+ local full_version
51
+ local variant
52
+ local tag
53
+ local full_tag
54
+ version=" $1 "
55
+ shift
56
+ variant=" $1 "
57
+ shift
58
+ tag=" $1 "
59
+ shift
60
+
61
+ if [ -z " ${variant} " ]; then
62
+ full_tag=" ${tag} "
63
+ elif [ " ${variant} " = " default" ]; then
64
+ full_tag=" ${tag} "
65
+ else
66
+ full_tag=" ${tag} -${variant} "
67
+ fi
47
68
48
69
info " Testing ${full_tag} "
49
- export full_tag=${full_tag}
50
70
export full_version=${full_version}
71
+ export full_tag=${full_tag}
51
72
bats test-image.bats
52
73
}
53
74
@@ -68,6 +89,7 @@ for version in "${versions[@]}"; do
68
89
# Required for chakracore
69
90
if [ -f " ${version} /Dockerfile" ]; then
70
91
build " ${version} " " default" " ${tag} "
92
+ test_image " ${full_version} " " default" " ${tag} "
71
93
fi
72
94
73
95
# Get supported variants according to the target architecture.
@@ -80,9 +102,11 @@ for version in "${versions[@]}"; do
80
102
81
103
if [ " ${variant} " = " onbuild" ]; then
82
104
build " ${version} " " ${default_variant} " " $tag "
105
+ test_image " ${full_version} " " ${default_variant} " " $tag "
83
106
fi
84
107
85
108
build " ${version} " " ${variant} " " ${tag} "
109
+ test_image " ${full_version} " " ${variant} " " ${tag} "
86
110
done
87
111
88
112
done
You can’t perform that action at this time.
0 commit comments