summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2017-05-19 18:11:57 +0200
committerEdward Hervey <bilboed@bilboed.com>2017-05-19 18:11:57 +0200
commit051bd705fa86ee78e0cfd725b3259b94105a9ba7 (patch)
tree4e5a574c845e0fad7d4fbb869c82953f50ab33bb
parent43e7062b5db421fe20f26bda92de06f1f79c6325 (diff)
ci-build: Add new fast-build-only and check steps
-rwxr-xr-xci-build.sh50
1 files changed, 38 insertions, 12 deletions
diff --git a/ci-build.sh b/ci-build.sh
index 755f0c4..d2ee441 100755
--- a/ci-build.sh
+++ b/ci-build.sh
@@ -23,6 +23,12 @@ case "$FLAVOR" in
fast)
echo "Using fast variant"
;;
+ fast-build-only)
+ echo "Using fast (build only) variant"
+ ;;
+ check)
+ echo "Running checks only"
+ ;;
validate)
echo "Using validate variant"
;;
@@ -38,10 +44,12 @@ case "$FLAVOR" in
echo " Usage : $0 <flavor>"
echo
echo "Available choices:"
- 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"
+ echo " fast : Builds without doc/introspection and runs unit tests"
+ echo " fast-build-only : Builds without doc/introspection"
+ echo " check : Run checks only"
+ 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
@@ -340,7 +348,7 @@ beach()
mkdir -p "validate-output"
gst-validate-launcher validate ges -j3 -fs -m -n --check-bugs --fail-on-testlist-change -M $WORKSPACE/validate-output --xunit-file $WORKSPACE/xunit.xml --http-server-port $VALIDATE_HTTP_PORT
fi
-
+
echo
echo "======================================================"
echo
@@ -370,16 +378,27 @@ beach()
# build selected modules
for m in $CORE $MODULES; do
- build $m
+ case "$FLAVOR" in
+ check)
+ ;;
+ *)
+ build $m
+ ;;
+ esac
done
# make check (for those activated)
for m in $CHECK_MODULES; do
- if test "x$FLAVOR" == "xfull"; then
- make_distcheck $m
- else
- make_check $m
- fi
+ case "$FLAVOR" in
+ full)
+ make_distcheck $m
+ ;;
+ fast-build-only)
+ ;;
+ *)
+ make_check $m
+ ;;
+ esac
done
# make valgrind (for those activated)
@@ -387,4 +406,11 @@ for m in $VALGRIND_MODULES; do
cd $WORKSPACE/$m
done
-beach
+case "$FLAVOR" in
+ fast-build-only)
+ echo "Not cleaning up"
+ ;;
+ *)
+ beach
+ ;;
+esac