travis: add misc and wayland build options to build matrix
authorStefan Schmidt <stefan@osg.samsung.com>
Fri, 5 Jan 2018 15:24:43 +0000 (16:24 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 17 Jan 2018 05:14:33 +0000 (14:14 +0900)
.ci/ci-linux-build.sh
.travis.yml

index 5472495..a48d078 100755 (executable)
@@ -1,10 +1,33 @@
 #!/bin/sh
 
-COPTS="--with-tests=regular"
 PARALLEL_JOBS=10
 
-# Normal build test of all targets
-./autogen.sh $COPTS $@
-make -j $PARALLEL_JOBS
-make -j $PARALLEL_JOBS examples
-make -j $PARALLEL_JOBS benchmark
+CI_BUILD_TYPE=$1
+
+DEFAULT_COPTS="--with-tests=regular"
+WAYLAND_COPTS="--with-tests=regular --enable-wayland --enable-elput --enable-drm"
+MISC_COPTS="--enable-harfbuzz --enable-liblz4 --enable-image-loader-webp --enable-xinput22 --enable-multisense --enable-lua-old --enable-xpresent --enable-hyphen"
+
+# --enable-libvlc --enable-vnc-server --enable-g-main-loop --enable-libuv --enable-fb --enable-eglfs --enable-sdl --enable-gl-drm --enable-egl --enable-pix    man --enable-tile-rotate --enable-ecore-buffer --enable-image-loader-generic --enable-image-loader-jp2k --enable-gesture --enable-v4l2 --enable-xine
+# --with-profile=PROFILE --with-crypto=CRYPTO
+
+if [ "$CI_BUILD_TYPE" = "" ]; then
+  # Normal build test of all targets
+  ./autogen.sh $DEFAULT_COPTS
+  make -j $PARALLEL_JOBS
+  make -j $PARALLEL_JOBS examples
+  make -j $PARALLEL_JOBS benchmark
+fi
+
+if [ "$CI_BUILD_TYPE" = "wayland" ]; then
+  ./autogen.sh $WAYLAND_COPTS
+  make -j $PARALLEL_JOBS
+  make -j $PARALLEL_JOBS examples
+fi
+
+if [ "$CI_BUILD_TYPE" = "misc" ]; then
+  ./autogen.sh $MISC_COPTS
+  make -j $PARALLEL_JOBS
+  make -j $PARALLEL_JOBS examples
+fi
+
index fff307f..2714057 100644 (file)
@@ -12,6 +12,8 @@ matrix:
   include:
     - env: DISTRO=Ubuntu1710
     - env: DISTRO=Fedora27
+    - env: DISTRO=Fedora27 CI_BUILD_TYPE=wayland
+    - env: DISTRO=Fedora27 CI_BUILD_TYPE=misc
     - env: DISTRO=Debian91
     - env: DISTRO=Archlinux
     - os: osx
@@ -31,7 +33,7 @@ before_script:
 script:
   - |
       if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
-        docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh
+        docker run -v `pwd`:/src -w /src stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh $CI_BUILD_TYPE
       fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-build.sh ; fi