aboutsummaryrefslogtreecommitdiffstats
path: root/build/ci/travis_ci.sh
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2019-03-25 11:39:49 +0000
committerMartin Matuska <mm@FreeBSD.org>2019-03-25 11:39:49 +0000
commitf9b2e63a44664e352e4a767f2822ca3eda65f540 (patch)
tree20683264c9614fd5337a784d04b9cd0a5ee281bf /build/ci/travis_ci.sh
parent64339c4130f344f01f8f36cbc3fda93f96c69d75 (diff)
downloadsrc-f9b2e63a44664e352e4a767f2822ca3eda65f540.tar.gz
src-f9b2e63a44664e352e4a767f2822ca3eda65f540.zip
Update vendor/libarchive/dist to git 3c079320b23ddf5ef38c443569c25898ad79ddb9
Relevant vendor changes: PR #1153: fixed 2 bugs in ZIP reader PR #1143: ensure archive_read_disk_entry_from_file() uses ARCHIVE_READ_DISK Changes to file flags code, support more file flags on FreeBSD: UF_OFFLINE, UF_READONLY, UF_SPARSE, UF_REPARSE, UF_SYSTEM UF_ARCHIVE is not supported by intention (yet)
Notes
Notes: svn path=/vendor/libarchive/dist/; revision=345495
Diffstat (limited to 'build/ci/travis_ci.sh')
-rwxr-xr-xbuild/ci/travis_ci.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/build/ci/travis_ci.sh b/build/ci/travis_ci.sh
new file mode 100755
index 000000000000..e51a67931b9f
--- /dev/null
+++ b/build/ci/travis_ci.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+UNAME=`uname`
+CURDIR=`pwd`
+SRCDIR="${SRCDIR:-`pwd`}"
+if [ -z "${BUILDDIR}" ]; then
+ BUILDDIR="${CURDIR}/build_ci/${BS}"
+fi
+mkdir -p "${BUILDDIR}"
+cd "${BUILDDIR}"
+case "$UNAME" in
+ MSYS*)
+ if [ "${BS}" = "msbuild" ]; then
+ set -x
+ cmake -G "Visual Studio 15 2017" -D CMAKE_BUILD_TYPE="Release" "${SRCDIR}"
+ cmake --build . --target ALL_BUILD
+ # Until fixed, we don't run tests on Windows (lots of fails + timeout)
+ #cmake --build . --target RUN_TESTS
+ set +x
+ elif [ "${BS}" = "mingw" ]; then
+ set -x
+ cmake -G "MSYS Makefiles" -D CMAKE_C_COMPILER="${CC}" -D CMAKE_MAKE_PROGRAM="mingw32-make" -D CMAKE_BUILD_TYPE="Release" "${SRCDIR}"
+ mingw32-make
+ # The MinGW tests time out on Travis CI, disable for now
+ #mingw32-make test
+ set +x
+ else
+ echo "Unknown or unspecified build type: ${BS}"
+ exit 1
+ fi
+ ;;
+esac