diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-02-28 14:26:03 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-02-28 15:15:32 +0100 |
| commit | f5f8e13744f40300864956fdceb3849c724b9bbb (patch) | |
| tree | 6e5039f8a05b75b94a6e694b3f4d7779c1b5b184 /script/build-libgit2.sh | |
| parent | 639b66345c2f00f15deb366cf58b22f0dbedf879 (diff) | |
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.
Diffstat (limited to 'script/build-libgit2.sh')
| -rwxr-xr-x | script/build-libgit2.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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" |
