]>
git.proxmox.com Git - libgit2.git/blob - ci/build.sh
3 # Environment variables:
5 # SOURCE_DIR: Set to the directory of the libgit2 source (optional)
6 # If not set, it will be derived relative to this script.
10 SOURCE_DIR
=${SOURCE_DIR:-$( cd "$( dirname "${BASH_SOURCE[0]}" )" && dirname $( pwd ) )}
14 indent
() { sed "s/^/ /"; }
16 echo "Source directory: ${SOURCE_DIR}"
17 echo "Build directory: ${BUILD_DIR}"
20 if [ "$(uname -s)" = "Darwin" ]; then
25 if [ -f "/etc/debian_version" ]; then
26 echo "Debian version:"
27 lsb_release
-a | indent
30 echo "Kernel version:"
31 uname
-a 2>&1 | indent
34 cmake
--version 2>&1 | indent
35 echo "Compiler version:"
36 $CC --version 2>&1 | indent
39 echo "##############################################################################"
40 echo "## Configuring build environment"
41 echo "##############################################################################"
43 echo cmake
${SOURCE_DIR} -DENABLE_WERROR=ON
-DBUILD_EXAMPLES=ON
-DBUILD_FUZZERS=ON
-DUSE_STANDALONE_FUZZERS=ON
${CMAKE_OPTIONS}
44 cmake
${SOURCE_DIR} -DENABLE_WERROR=ON
-DBUILD_EXAMPLES=ON
-DBUILD_FUZZERS=ON
-DUSE_STANDALONE_FUZZERS=ON
${CMAKE_OPTIONS}
47 echo "##############################################################################"
48 echo "## Building libgit2"
49 echo "##############################################################################"