Skip to content

Commit a2e65f4

Browse files
committed
Travis: build libssh2 1.9.0
1 parent 11c0f23 commit a2e65f4

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.travis.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ then
77
exit 1
88
fi
99

10+
PREFIX=/home/travis/install
11+
12+
# Build libssh2 1.9.0 (Ubuntu only has 1.8.0, which doesn't work)
1013
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
1119

20+
# Build libgit2
21+
cd ~
1222
git clone --depth=1 -b "maint/v${LIBGIT2_VERSION}" https://github.com/libgit2/libgit2.git
1323
cd libgit2/
1424

1525
mkdir build && cd build
16-
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
26+
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_CLAR=OFF
1727
cmake --build . --target install
1828

1929
ls -la ..

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python:
1111

1212
env:
1313
global:
14-
LIBGIT2: ~/libgit2/_install/
14+
LIBGIT2: ~/install/
1515
LD_LIBRARY_PATH: ${LIBGIT2}/lib:${LD_LIBRARY_PATH}
1616
LIBGIT2_VERSION: "1.0"
1717

@@ -62,7 +62,7 @@ jobs:
6262

6363

6464
before_install:
65-
- sudo apt-get -y install cmake libssh2-1-dev
65+
- sudo apt-get -y install cmake
6666
- ./.travis.sh "${LIBGIT2_VERSION}"
6767

6868
install:

0 commit comments

Comments
 (0)