ci: Add Jenkins build and testing scripts

Change-Id: Ifaa9dc8ba7c5185c0d20ea3a3784638cbb9efbaa
diff --git a/.jenkins.d/20-build.sh b/.jenkins.d/20-build.sh
new file mode 100755
index 0000000..7b72060
--- /dev/null
+++ b/.jenkins.d/20-build.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -x
+
+git submodule init
+git submodule sync
+git submodule update
+
+# actual build
+./waf distclean --color=yes
+
+COVERAGE=`python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''"`
+
+CXXFLAGS="-Wall -Wno-long-long -O2 -g -Werror" ./waf configure --color=yes --with-tests $COVERAGE
+
+./waf -j1 --color=yes
+sudo ./waf install --color=yes