File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 7
7
exit 1
8
8
fi
9
9
10
+ PREFIX=/home/travis/install
11
+
12
+ # Build libssh2 1.9.0 (Ubuntu only has 1.8.0, which doesn't work)
10
13
cd ~
14
+ wget https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
15
+ tar xf libssh2-1.9.0.tar.gz
16
+ cd libssh2-1.9.0
17
+ ./configure --prefix=/usr --disable-static && make
18
+ sudo make install
11
19
20
+ # Build libgit2
21
+ cd ~
12
22
git clone --depth=1 -b " maint/v${LIBGIT2_VERSION} " https://github.com/libgit2/libgit2.git
13
23
cd libgit2/
14
24
15
25
mkdir build && cd build
16
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
26
+ cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_CLAR=OFF
17
27
cmake --build . --target install
18
28
19
29
ls -la ..
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ python:
11
11
12
12
env :
13
13
global :
14
- LIBGIT2 : ~/libgit2/_install /
14
+ LIBGIT2 : ~/install /
15
15
LD_LIBRARY_PATH : ${LIBGIT2}/lib:${LD_LIBRARY_PATH}
16
16
LIBGIT2_VERSION : " 1.0"
17
17
62
62
63
63
64
64
before_install :
65
- - sudo apt-get -y install cmake libssh2-1-dev
65
+ - sudo apt-get -y install cmake
66
66
- ./.travis.sh "${LIBGIT2_VERSION}"
67
67
68
68
install :
You can’t perform that action at this time.
0 commit comments