File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed
Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 4848 ${WERROR} \
4949 ${DEBUG}
5050
51+ echo
5152echo -n " Main build started at " && date
5253${ATS_MAKE} ${ATS_MAKE_FLAGS} V=1 Q= || exit 1
5354echo -n " Main build finished at " && date
Original file line number Diff line number Diff line change 1717# limitations under the License.
1818
1919cd " ${WORKSPACE} /src"
20+
21+ # First, make sure there are no trailing WS!!!
22+ git grep -IE ' +$' | fgrep -v ' .gold:'
23+ if [ " 1" != " $? " ]; then
24+ echo " Error: Trailing whitespaces are not allowed!"
25+ echo " Error: Please run: git grep -IE ' +$'"
26+ exit 1
27+ fi
28+
2029autoreconf -if && ./configure
21- [ " 0" != " $? " ] && exit - 1
30+ [ " 0" != " $? " ] && exit 1
2231
23- ${ATS_MAKE} -j clang-format
24- [ " 0" != " $? " ] && exit - 1
32+ ${ATS_MAKE} clang-format
33+ [ " 0" != " $? " ] && exit 1
2534
2635git diff --exit-code
27- [ " 0" != " $? " ] && exit - 1
36+ [ " 0" != " $? " ] && exit 1
2837
2938# Normal exit
3039exit 0
Original file line number Diff line number Diff line change @@ -62,17 +62,21 @@ autoreconf -if
6262 ${DEBUG}
6363
6464# Build and run regressions
65+ echo
6566echo -n " Main build started at " && date
6667${ATS_MAKE} ${ATS_MAKE_FLAGS} V=1 Q= || exit 1
6768echo -n " Main build finished at " && date
6869echo
6970echo -n " Unit tests started at " && date
70- ${ATS_MAKE} check VERBOSE=Y V=1 && ${ATS_MAKE} install
71+ ${ATS_MAKE} -j 2 check VERBOSE=Y V=1 && ${ATS_MAKE} install
7172echo -n " Unit tests finished at " && date
7273
7374[ -x ${INSTALL} /bin/traffic_server ] || exit 1
7475
76+ echo
77+ echo -n " Regression tests started at " && date
7578${INSTALL} /bin/traffic_server -K -k -R 1
79+ echo -n " Regression tests finished at " && date
7680[ " 0" != " $? " ] && exit 1
7781
7882exit 0
Original file line number Diff line number Diff line change 1919cd " ${WORKSPACE} /${BUILD_NUMBER} /build"
2020[ -d BUILDS ] && cd BUILDS
2121
22- ${ATS_MAKE} check VERBOSE=Y V=1 || exit 1
22+ echo
23+ echo -n " Unit tests started at " && date
24+ ${ATS_MAKE} -j 2 check VERBOSE=Y V=1 || exit 1
25+ echo -n " Unit tests finished at " && date
2326${ATS_MAKE} install || exit 1
2427
2528echo
26- echo -n " Unit tests started at " && date
29+ echo -n " Regression tests started at " && date
2730" ${WORKSPACE} /${BUILD_NUMBER} /install/bin/traffic_server" -k -K -R 1
28- echo -n " Unit tests finished at " && date
31+ echo -n " Regression tests finished at " && date
You can’t perform that action at this time.
0 commit comments