This repository was archived by the owner on Jun 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ it_skip_flag="docker.It"
19
19
# value for '-skip' in ginkgo
20
20
_skip_options=()
21
21
22
+ source " ${ci_dir} /lib.sh"
23
+
22
24
filter_and_build ()
23
25
{
24
26
local dependency=" $1 "
@@ -33,6 +35,8 @@ filter_and_build()
33
35
34
36
main ()
35
37
{
38
+ # install yq if not exist
39
+ [ -z " $( command -v yq) " ] && install_yq
36
40
# build skip option based on Describe block
37
41
filter_and_build " ${describe_skip_flag} "
38
42
Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ test_filter_flag="test"
16
16
17
17
_test_union=()
18
18
19
+ source " ${ci_dir} /lib.sh"
20
+
19
21
main ()
20
22
{
23
+ # install yq if not exist
24
+ [ -z " $( command -v yq) " ] && install_yq
21
25
local array_test=$( " ${GOPATH_LOCAL} /bin/yq" read " ${test_config_file} " " ${test_filter_flag} " )
22
26
[ " ${array_test} " = " null" ] && return
23
27
mapfile -t _array_test <<< " ${array_test}"
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function install_yq() {
121
121
yq_version=$( basename " ${yq_latest_url} " )
122
122
123
123
local yq_url=" https://${yq_pkg} /releases/download/${yq_version} /yq_${goos} _${goarch} "
124
- curl -o " ${yq_path} " -L ${yq_url}
124
+ curl -o " ${yq_path} " -LSs ${yq_url}
125
125
chmod +x ${yq_path}
126
126
127
127
if ! command -v " ${yq_path} " > /dev/null; then
You can’t perform that action at this time.
0 commit comments