[sr-dev] git:master:b831f7bd: test/travis: build with MEMDBG=0 and MEMDBG=1

Victor Seva linuxmaniac at torreviejawireless.org
Wed Sep 16 18:45:02 CEST 2015


Module: kamailio
Branch: master
Commit: b831f7bd9c91cf4d75ec299d250cd463ab96e7c9
URL: https://github.com/kamailio/kamailio/commit/b831f7bd9c91cf4d75ec299d250cd463ab96e7c9

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-09-16T18:44:34+02:00

test/travis: build with MEMDBG=0 and MEMDBG=1

---

Modified: test/travis/build_travis.sh

---

Diff:  https://github.com/kamailio/kamailio/commit/b831f7bd9c91cf4d75ec299d250cd463ab96e7c9.diff
Patch: https://github.com/kamailio/kamailio/commit/b831f7bd9c91cf4d75ec299d250cd463ab96e7c9.patch

---

diff --git a/test/travis/build_travis.sh b/test/travis/build_travis.sh
index 04b4b2c..6b7c3a8 100755
--- a/test/travis/build_travis.sh
+++ b/test/travis/build_travis.sh
@@ -11,19 +11,34 @@ PACKAGE_GROUPS="mysql postgres berkeley unixodbc radius presence ldap xml perl u
 	sqlite json mono ims sctp java \
 	purple tls outbound websocket autheph"
 export TESTS_EXCLUDE="3 12 17 19 20 23 25 26 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 50"
-echo "make cfg"
-make FLAVOUR=kamailio cfg \
-	skip_modules="${EXCLUDED_MODULES} ${EXTRA_EXCLUDED_MODULES}" \
-	group_include="kstandard"
-echo "make all"
-make all
-echo "make groups"
-for grp in ${PACKAGE_GROUPS}; do
-	make every-module group_include="k${grp}"
-done
+
+function build {
+	echo "make distclean"
+	make distclean
+	echo "make cfg"
+	make FLAVOUR=kamailio cfg \
+		skip_modules="${EXCLUDED_MODULES} ${EXTRA_EXCLUDED_MODULES}" \
+		group_include="kstandard"
+	echo "make all"
+	make all
+	echo "make groups"
+	for grp in ${PACKAGE_GROUPS}; do
+		make every-module group_include="k${grp}"
+	done
+}
+
+# build flags
+export MEMDBG=0
+echo "build with MEMDBG=0"
+build
+
+export MEMDBG=1
+echo "build with MEMDBG=1"
+build
+
 #echo "unit tests"
 #make -C test/unit
-if [[ "$CC" =~ "gcc" ]] ; then
+if [[ "$CC" =~ gcc ]] ; then
 	echo "make install"
 	sudo make install
 else




More information about the sr-dev mailing list