File tree Expand file tree Collapse file tree 2 files changed +29
-32
lines changed Expand file tree Collapse file tree 2 files changed +29
-32
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,41 @@ set -o errexit
9
9
# Return value of a pipeline is the value of the last command to exit with a non-zero status
10
10
set -o pipefail
11
11
12
+ print_status () {
13
+ # $1 is empty if check has succeeded
14
+ # $1 equals to 'fail' if check has failed
15
+ # $1 equals to 'skip' if check has skipped
16
+ local result=" $1 "
17
+ local msg=" $2 "
18
+
19
+ local status=' SUCCESS'
20
+ local color=32
21
+
22
+ if [ " $result " = ' fail' ]; then
23
+ status=' FAIL'
24
+ color=31
25
+ elif [ " $result " = ' skip' ]; then
26
+ status=' SKIP'
27
+ color=33
28
+ fi
29
+ printf " * %s... \033[1;%dm%s\033[0m\n" " $msg " " $color " " $status "
30
+ }
31
+
32
+ print_log () {
33
+ local log_file=" $1 "
34
+ local msg=" $2 "
35
+
36
+ echo
37
+ printf " =====> \033[1;33m%s\033[0m\n" " $msg "
38
+ echo
39
+ grep -Ev ' ^\[INFO\] Download(ing|ed)' " $log_file " || :
40
+ }
12
41
13
42
RUN_ONLY_INTEGRATION_TESTS=no
14
43
if [ " ${1:- } " = ' --only-integration-tests' ]; then
15
44
RUN_ONLY_INTEGRATION_TESTS=yes
16
45
fi
17
46
18
- # shellcheck source=src/main/scripts/ci/common.sh
19
- . " $( dirname " $0 " ) /common.sh"
20
-
21
47
CS_STATUS=
22
48
PMD_STATUS=
23
49
LICENSE_STATUS=
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments