]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Reorganize CI build scripts
authorMartin Matuska <martin@matuska.org>
Wed, 30 Jan 2019 15:56:37 +0000 (16:56 +0100)
committerMartin Matuska <martin@matuska.org>
Wed, 30 Jan 2019 15:56:37 +0000 (16:56 +0100)
.cirrus.yml
build/ci/build.sh [moved from build/ci_build.sh with 97% similarity]
build/ci/cirrus_ci.sh
build/ci/test_driver [moved from build/ci_test_driver with 100% similarity]

index a41cf07e6b4b34c576a3d189ad4a15c3e65809a6..28d38213f95bfe15a0373484242b0812a4e25ea1 100644 (file)
@@ -22,5 +22,5 @@ task:
   install_script:
     - ./build/ci/cirrus_ci.sh install
   script:
-    - ./build/ci_build.sh
+    - ./build/ci/build.sh
     - ./build/ci/cirrus_ci.sh test
similarity index 97%
rename from build/ci_build.sh
rename to build/ci/build.sh
index 9449edd4a961f4a05d949d0c529280513cd09e26..d61336eafb0e2dc49fc3c37204c5ed1200807d82 100755 (executable)
@@ -94,7 +94,7 @@ for action in ${ACTIONS}; do
                test)
                        case "${BS}" in
                                autotools)
-                                       ${MAKE} ${MAKE_ARGS} check LOG_DRIVER="${SRCDIR}/build/ci_test_driver"
+                                       ${MAKE} ${MAKE_ARGS} check LOG_DRIVER="${SRCDIR}/build/ci/test_driver"
                                        ;;
                                cmake)
                                        ${MAKE} ${MAKE_ARGS} test
index cb7d42c5b82f11e7e101289d3b9f65203d05436f..9db762f97cca7e1aa4a20b85eba9a96c5427d062 100755 (executable)
@@ -2,7 +2,7 @@
 UNAME=`uname`
 if [ "$1" = "install" ]
 then
-       if [ "$UNAME" = "FreeBSD" ]
+       if [ "${UNAME}" = "FreeBSD" ]
        then
                set -x -e
                sed -i.bak -e 's,pkg+http://pkg.FreeBSD.org/\${ABI}/quarterly,pkg+http://pkg.FreeBSD.org/\${ABI}/latest,' /etc/pkg/FreeBSD.conf
@@ -14,12 +14,12 @@ then
                mount /dev/$MD /tmp_acl_nfsv4
                chmod 1777 /tmp_acl_nfsv4
                pkg install -y autoconf automake cmake libiconv libtool pkgconf expat libxml2 liblz4 zstd
-       elif [ "$UNAME" = "Darwin" ]
+       elif [ "${UNAME}" = "Darwin" ]
        then
                set -x -e
                brew update
                brew install autoconf automake libtool pkg-config cmake xz lz4 zstd
-       elif [ "$UNAME" = "Linux" ]
+       elif [ "${UNAME}" = "Linux" ]
        then
                if [ -f "/etc/debian_version" ]
                then
@@ -32,14 +32,20 @@ then
        fi
 elif [ "$1" = "test" ]
 then
-       if [ "$UNAME" = "FreeBSD" -a "$BUILD_SYSTEM" != "cmake" ]
+       if [ "${UNAME}" = "FreeBSD" ]
        then
                set -e
                echo "Additional NFSv4 ACL tests"
                CURDIR=`pwd`
-               BUILDDIR="${CURDIR}/build_ci/${BUILD_SYSTEM}"
-               cd "${BUILDDIR}"
-               TMPDIR=/tmp_acl_nfsv4 ./libarchive_test -r "${CURDIR}/libarchive/test" -v test_acl_platform_nfs4
+               if [ "${BS}" = "cmake" ]
+               then
+                       BIN_SUBDIR="bin"
+               else
+                       BIN_SUBDIR=.
+               fi
+               BUILDDIR="${CURDIR}/build_ci/${BS}"
+               cd "$BUILDDIR"
+               TMPDIR=/tmp_acl_nfsv4 ${BIN_SUBDIR}/libarchive_test -r "${CURDIR}/libarchive/test" -v test_acl_platform_nfs4
        fi
 else
        echo "Usage $0 install | test_nfsv4_acls"
similarity index 100%
rename from build/ci_test_driver
rename to build/ci/test_driver