Add liburcu Solaris build jobs
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 22 Oct 2015 21:16:01 +0000 (17:16 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Thu, 22 Oct 2015 21:16:01 +0000 (17:16 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/liburcu.yaml
scripts/liburcu/build.sh

index 121ea5260a2222a0d83572bfebff3762d183bf43..97db8ed317416fdcba4208da09be8464f26da4a7 100644 (file)
           buildtype: portbuild
           arch: !!python/tuple [armhf, powerpc, ppc64el]
           build: !!python/tuple [std]
+      - 'liburcu_{version}_{buildtype}':
+          buildtype: solarisbuild
+          arch: !!python/tuple [solaris10, solaris11]
+          build: !!python/tuple [std]
+          version:
+            - master
+            - stable-0.9
       - 'liburcu_{version}_cppcheck'
       - 'liburcu_{version}_scan-build'
       - 'liburcu_{version}_coverity':
index 042cdf5151688489170b212ecf95f15835aee556..8e5a9c611d272c50f2ddc5594bd97debde45a7e1 100755 (executable)
@@ -26,6 +26,28 @@ PREFIX="$WORKSPACE/build"
 
 CONF_OPTS=""
 
+case "$arch" in
+solaris10)
+    MAKE=gmake
+    TAR=gtar
+    NPROC=gnproc
+    CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+    ;;
+solaris11)
+    MAKE=gmake
+    TAR=gtar
+    NPROC=nproc
+    CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
+    export PATH="$PATH:/usr/perl5/bin"
+    ;;
+*)
+    MAKE=make
+    TAR=tar
+    NPROC=nproc
+    CFLAGS=""
+    ;;
+esac
+
 case "$conf" in
 static)
     echo "Static build"
@@ -56,35 +78,37 @@ case "$build" in
                BUILD_PATH=$WORKSPACE/oot
                mkdir -p $BUILD_PATH
                cd $BUILD_PATH
-               $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+               MAKE=$MAKE CFLAGS="$CFLAGS" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
                ;;
        dist)
                echo "Distribution out of tree build"
                BUILD_PATH=`mktemp -d`
 
                # Initial configure and generate tarball
-               ./configure
-               make dist
+               MAKE=$MAKE ./configure
+               $MAKE dist
 
                mkdir -p $BUILD_PATH
                cp *.tar.* $BUILD_PATH/
                cd $BUILD_PATH
 
                # Ignore level 1 of tar
-               tar xvf *.tar.* --strip 1
+               $TAR xvf *.tar.* --strip 1
 
-               $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
+               MAKE=$MAKE CFLAGS="$CFLAGS" $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
                ;;
        *)
                BUILD_PATH=$WORKSPACE
                echo "Standard tree build"
-               $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+               MAKE=$MAKE CFLAGS="$CFLAGS" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
                ;;
 esac
 
-make
-make install
-make clean
+$MAKE -j `$NPROC`
+$MAKE install
+$MAKE check
+$MAKE regtest
+$MAKE clean
 
 # Cleanup rpath and libtool .la files
 find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
@@ -92,5 +116,8 @@ find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
 
 # Cleanup temp directory of dist build
 if [ $build = "dist" ]; then
+       cd $WORKSPACE
        rm -rf $BUILD_PATH
 fi
+
+# EOF
This page took 0.026019 seconds and 4 git commands to generate.