-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild-code.bash
More file actions
executable file
·98 lines (82 loc) · 2.53 KB
/
build-code.bash
File metadata and controls
executable file
·98 lines (82 loc) · 2.53 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
#
# Simple CRCE build script.
#
# HOWTO: call with one parameter, see the if-switch below for values
# plus default values as set here.
#
CFG=$1
BUILD="clean install"
PARAMS=
echo "CRCE build type: ${CFG:-(plain)}"
if [ "$CFG" == "notest" ]; then
PARAMS="-Dmaven.test.skip=true -Dfindbugs.skip=true";
elif [ "$CFG" == "onlyclean" ]; then
BUILD="clean"
elif [ "$CFG" == "fast" ]; then
BUILD="install"
PARAMS="-Dmaven.test.skip=true -Dfindbugs.skip=true";
fi
# Start the machine ...
echo $'\n\n\n'; echo "=============================================================="
echo "Building crce-parent in ./pom"
echo "#==============================================================\n\n\n"
cd pom
mvn $BUILD $PARAMS
retVal=$?
cd ..
if [ $retVal -ne 0 ]; then
echo "Error";
exit $retVal;
fi
#==============================================================
echo $'\n\n\n'; echo "=============================================================="
echo "Building shared-build-settings in ./build"
echo "#==============================================================\n\n\n"
cd build
mvn $BUILD $PARAMS
retVal=$?
cd ..
if [ $retVal -ne 0 ]; then
echo "Error";
exit $retVal;
fi
#==============================================================
echo $'\n\n\n'; echo "=============================================================="
echo "Building third party libraries in ./third-party"
echo "#==============================================================\n\n\n"
cd third-party
for d in * ; do cd $d ; mvn $BUILD $PARAMS; cd .. ; done
retVal=$?
cd ..
if [ $retVal -ne 0 ]; then
echo "Error";
exit $retVal;
fi
#==============================================================
echo $'\n\n\n'; echo "=============================================================="
echo "Building crce-core-reactor in ./core"
echo "#==============================================================\n\n\n"
cd core
mvn $BUILD $PARAMS
retVal=$?
cd ..
if [ $retVal -ne 0 ]; then
echo "Error";
exit $retVal;
fi
#==============================================================
echo $'\n\n\n'; echo "=============================================================="
echo "Building crce-modules-reactor in ./modules"
echo "#==============================================================\n\n\n"
cd modules
mvn $BUILD $PARAMS
retVal=$?
cd ..
if [ $retVal -ne 0 ]; then
echo "Error";
exit $retVal;
fi
echo $'\n\n\n'; echo "=============================================================="
echo "Done building"
echo "#==============================================================\n\n\n"