]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - build/ci/travis_ci.sh
Update vendor/libarchive/dist to git b5818e39e128eca4951e2ab10467d4d850a2ba57
[FreeBSD/FreeBSD.git] / build / ci / travis_ci.sh
1 #!/bin/sh
2 set -e
3 UNAME=`uname`
4 CURDIR=`pwd`
5 SRCDIR="${SRCDIR:-`pwd`}"
6 if [ -z "${BUILDDIR}" ]; then
7         BUILDDIR="${CURDIR}/build_ci/${BS}"
8 fi
9 mkdir -p "${BUILDDIR}"
10 cd "${BUILDDIR}"
11 case "$UNAME" in
12         MSYS*)
13         if [ "${BS}" = "msbuild" ]; then
14                 set -x
15                 cmake -G "Visual Studio 15 2017" -D CMAKE_BUILD_TYPE="Release" "${SRCDIR}"
16                 cmake --build . --target ALL_BUILD
17                 # Until fixed, we don't run tests on Windows (lots of fails + timeout)
18                 #export SKIP_TEST_FUZZ=1
19                 #cmake --build . --target RUN_TESTS
20                 set +x
21         elif [ "${BS}" = "mingw" ]; then
22                 set -x
23                 cmake -G "MSYS Makefiles" -D CMAKE_C_COMPILER="${CC}" -D CMAKE_MAKE_PROGRAM="mingw32-make" -D CMAKE_BUILD_TYPE="Release" "${SRCDIR}"
24                 mingw32-make
25                 #export SKIP_TEST_FUZZ=1
26                 #mingw32-make test
27                 set +x
28         else
29                 echo "Unknown or unspecified build type: ${BS}"
30                 exit 1
31         fi
32         ;;
33 esac