-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildAll.sh
executable file
·71 lines (61 loc) · 3.37 KB
/
buildAll.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
#
set +ex
[ -d .logs ] || mkdir .logs
mvn clean install | tee .logs/mvn-install.log
MVN_EXIT="${PIPESTATUS[0]}"
# MVN_EXIT="$?" - Not valid due to pipe
cat .logs/mvn-install.log | grep "warning: no description for" | sort | uniq > .logs/mvn-install-warn-no-desc.log
cat .logs/mvn-install.log | grep "warning: no @param for" | sort | uniq > .logs/mvn-install-warn-no-param.log
cat .logs/mvn-install.log | grep "warning: no @return" | sort | uniq > .logs/mvn-install-warn-no-return.log
cat .logs/mvn-install.log | grep "error: unknown tag:" | sort | uniq > .logs/mvn-install-error-unknown-tag.log
cat .logs/mvn-install.log | grep "error: exception not thrown:" | sort | uniq > .logs/mvn-install-error-not-thrown.log
cat .logs/mvn-install.log | grep "warning: empty" | sort | uniq > .logs/mvn-install-warning-empty.log
cat .logs/mvn-install.log | grep "error: reference not found" | sort | uniq > .logs/mvn-install-error-reference-not-found.log
cat .logs/mvn-install.log | grep ": error: bad use of '" | sort | uniq > .logs/mvn-install-error-bad-use-of.log
cat .logs/mvn-install.log | grep "error: semicolon missing" | sort | uniq > .logs/mvn-install-error-semicolon-missing.log
cat .logs/mvn-install.log | grep -v "warning: no description for" \
| grep -v "warning: no @param for" \
| grep -v "warning: no @return" \
| grep -v "error: unknown tag:" \
| grep -v "error: exception not thrown:" \
| grep -v "warning: empty" \
| grep -v "error: reference not found" \
| grep -v ": error: bad use of '" \
| grep -v "error: semicolon missing" \
> .logs/mvn-install-others.log
if [ ! "${MVN_EXIT}" -eq "0" ];
then
echo "[ERROR] in ${MVN} ${MVN_PARAM}"
exit 1
fi
pushd apps
./buildAllApps.sh | tee ../.logs/buildAllApps.log
popd
cat .logs/buildAllApps.log | grep "warning: no description for" | sort | uniq > .logs/build-all-apps-warn-no-desc.log
cat .logs/buildAllApps.log | grep "warning: no @param for" | sort | uniq > .logs/build-all-apps-warn-no-param.log
cat .logs/buildAllApps.log | grep "warning: no @return" | sort | uniq > .logs/build-all-apps-warn-no-return.log
cat .logs/buildAllApps.log | grep "error: unknown tag:" | sort | uniq > .logs/build-all-apps-error-unknown-tag.log
cat .logs/buildAllApps.log | grep "error: exception not thrown:" | sort | uniq > .logs/build-all-apps-error-not-thrown.log
cat .logs/buildAllApps.log | grep "warning: empty" | sort | uniq > .logs/build-all-apps-warning-empty.log
cat .logs/buildAllApps.log | grep "error: reference not found" | sort | uniq > .logs/build-all-apps-error-reference-not-found.log
cat .logs/buildAllApps.log | grep ": error: bad use of '" | sort | uniq > .logs/build-all-apps-error-bad-use-of.log
cat .logs/buildAllApps.log | grep "error: semicolon missing" | sort | uniq > .logs/build-all-apps-error-semicolon-missing.log
cat .logs/buildAllApps.log | grep -v "warning: no description for" \
| grep -v "warning: no @param for" \
| grep -v "warning: no @return" \
| grep -v "error: unknown tag:" \
| grep -v "error: exception not thrown:" \
| grep -v "warning: empty" \
| grep -v "error: reference not found" \
| grep -v ": error: bad use of '" \
| grep -v "error: semicolon missing" \
> .logs/build-all-apps-others.log
# Some cleanup
rm -fr /tmp/FolderTreeBuilderTest*
rm -fr /tmp/cchlib-test-io-*
rm -fr /tmp/content*-file*-*.png*
rm -fr /tmp/dup-file*.png
rm -fr /tmp/notduplicate-*
rm -fr /tmp/part-*.png
rm -fr /tmp/testCopyURLFile*