From: Martin Matuska Date: Sun, 20 Jan 2019 01:10:53 +0000 (+0100) Subject: Improve cirrus build X-Git-Tag: v3.4.0~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2abf2e577ea1ab62ee95e51d71545f10d0114b8;p=thirdparty%2Flibarchive.git Improve cirrus build --- diff --git a/.cirrus.yml b/.cirrus.yml index c5266e214..15c3cba92 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,14 +1,22 @@ env: CIRRUS_CLONE_DEPTH: 1 ARCH: amd64 - CPPFLAGS: -I/usr/local/include - LDFLAGS: -L/usr/local/lib task: - freebsd_instance: - matrix: + matrix: + freebsd_instance: image: freebsd-12-0-release-amd64 + freebsd_instance: image: freebsd-11-2-release-amd64 + osx_instance: + image: mojave-xcode-10.1 + osx_instance: + image: high-sierra-xcode-10.0 + matrix: + env: + BUILD_SYSTEM: autotools + env: + BUILD_SYSTEM: cmake install_script: - ./build/ci/cirrus_ci.sh install script: diff --git a/build/ci/cirrus_ci.sh b/build/ci/cirrus_ci.sh index 521402df6..ae8a1a716 100755 --- a/build/ci/cirrus_ci.sh +++ b/build/ci/cirrus_ci.sh @@ -13,16 +13,20 @@ then tunefs -N enable /dev/$MD mount /dev/$MD /tmp_acl_nfsv4 chmod 1777 /tmp_acl_nfsv4 - pkg install -y autoconf automake libiconv libtool pkgconf expat libxml2 liblz4 zstd + pkg install -y autoconf automake cmake libiconv libtool pkgconf expat libxml2 liblz4 zstd elif [ "$UNAME" = "Darwin" ] then set -x -e brew update - brew install xz lz4 zstd + brew install autoconf automake libtool pkg-config cmake xz lz4 zstd + elif [ "$UNAME" = "Linux" -a -f /etc/debian_version ] + then + apt-get -y update + apt-get -y install build-essential automake libtool bison sharutils pkgconf libacl1-dev libbz2-dev libzip-dev zlib1g-dev liblzma-dev liblz4-dev libzstd-dev lrzip cmake fi elif [ "$1" = "test" ] then - if [ "$UNAME" = "FreeBSD" ] + if [ "$UNAME" = "FreeBSD" -a "$BUILD_SYSTEM" != "cmake" ] then set -e echo "Additional NFSv4 ACL tests" diff --git a/build/ci_build.sh b/build/ci_build.sh index 5651c02d1..c184a6f16 100755 --- a/build/ci_build.sh +++ b/build/ci_build.sh @@ -99,7 +99,7 @@ for action in ${ACTIONS}; do ;; esac RET="$?" - find /tmp -path '*_test.*' -name '*.log' -print -exec cat {} \; + find ${TMPDIR:-/tmp} -path '*_test.*' -name '*.log' -print -exec cat {} \; ;; esac if [ "${RET}" != "0" ]; then