2015-06-28 06:17:14 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install libgit2 to git2go in dynamic mode on Travis
|
|
|
|
#
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# We don't want to build libgit2 on the next branch, as we carry a
|
|
|
|
# submodule with the exact version we support
|
|
|
|
if [ "x$TRAVIS_BRANCH" = "xnext" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd "${HOME}"
|
2015-08-31 07:01:06 -05:00
|
|
|
wget -O libgit2-0.23.1.tar.gz https://github.com/libgit2/libgit2/archive/v0.23.1.tar.gz
|
|
|
|
tar -xzvf libgit2-0.23.1.tar.gz
|
|
|
|
cd libgit2-0.23.1 && mkdir build && cd build
|
2015-06-28 06:17:14 -05:00
|
|
|
cmake -DTHREADSAFE=ON -DBUILD_CLAR=OFF -DCMAKE_BUILD_TYPE="RelWithDebInfo" .. && make && sudo make install
|
|
|
|
sudo ldconfig
|
|
|
|
cd "${TRAVIS_BUILD_DIR}"
|