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 | |
| 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.
| -rw-r--r-- | .travis.yml | 12 | ||||
| -rwxr-xr-x | script/build-libgit2.sh | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..86f8265 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: go + +go: + - 1.0 + - 1.1 + - tip + +env: + - PKG_CONFIG_PATH=libgit2/install/lib/pkgconfig LD_LIBRARY_PATH=libgit2/install/lib + +install: + - 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" |
