From f5f8e13744f40300864956fdceb3849c724b9bbb Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Fri, 28 Feb 2014 14:26:03 +0100 Subject: Add a travis script Add a build script and ask Travis to run it. It downloads the tip of libgit2's dev branch and tests against that. --- script/build-libgit2.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 script/build-libgit2.sh (limited to 'script/build-libgit2.sh') diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh new file mode 100755 index 0000000..aa43df5 --- /dev/null +++ b/script/build-libgit2.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -ex + +git clone --depth 1 --single-branch git://github.com/libgit2/libgit2 libgit2 + +cd libgit2 +cmake -DTHREADSAFE=ON \ + -DBUILD_CLAR=OFF \ + -DCMAKE_INSTALL_PREFIX=$PWD/install \ + . + +make install + +# Let the Go build system know where to find libgit2 +export LD_LIBRARY_PATH="$TMPDIR/libgit2/install/lib" +export PKG_CONFIG_PATH="$TMPDIR/libgit2/install/lib/pkgconfig" -- cgit v1.2.3