diff options
author | Edward Hervey <bilboed@bilboed.com> | 2014-11-20 10:08:41 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2014-11-20 10:08:41 +0100 |
commit | 36825c50e67168103cf19a61f33afab777f6727d (patch) | |
tree | 7e051a9734708b1dd581390df296ec845002d7bf | |
parent | 1638ef740440326291de3d695a4a7a5c092ef05b (diff) |
ci-build: Add validate command
-rwxr-xr-x | ci-build.sh | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/ci-build.sh b/ci-build.sh index 7f3a337..2134796 100755 --- a/ci-build.sh +++ b/ci-build.sh @@ -23,6 +23,9 @@ case "$FLAVOR" in fast) echo "Using fast variant" ;; + validate) + echo "Using validate variant" + ;; nodebug) echo "Using nodebug variant" ;; @@ -38,6 +41,7 @@ case "$FLAVOR" in echo " fast : Builds without doc/introspection and runs unit tests" echo " nodebug : Same as fast but with GST_DEBUG disabled" echo " full : doc/introspection build + distcheck + valgrind" + echo " validate: Builds without doc/introspection and runs gst-validate" exit 42 ;; esac @@ -52,7 +56,11 @@ if test "x$FLAVOR" == "xfull"; then # FIXME : distcheck fails for gst-libav CHECK_MODULES="orc gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-rtsp-server gnonlin gst-editing-services" else - CHECK_MODULES="orc gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-libav gst-rtsp-server gnonlin gst-editing-services" + if test "x$FLAVOR" == "xvalidate"; then + CHECK_MODULES="" + else + CHECK_MODULES="orc gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad gst-libav gst-rtsp-server gnonlin gst-editing-services" + fi fi # FIXME : Gradually add more modules @@ -165,7 +173,7 @@ build() # Fast variant => no docs # Full variant => introspection and docs case "$FLAVOR" in - fast) + fast|validate) AGARGS="--disable-gtk-doc --disable-docbook --enable-introspection";; nodebug) AGARGS="--disable-gst-debug --disable-gtk-doc --disable-docbook --enable-introspection";; @@ -288,6 +296,17 @@ beach() gst-inspect-1.0 -b + if test "x$FLAVOR" == "xvalidate"; then + echo + echo "======================================================" + echo + mkdir -p $LOGDIR/gst-devtools + build "gst-devtools/validate" + cd $WORKSPACE + mkdir -p "validate-output" + gst-validate-launcher -S -m -M $WORKSPACE/validate-output --xunit-file $WORKSPACE/xunit.xml + fi + echo echo "======================================================" echo |