Skip to content

Commit 8f9d2bb

Browse files
authored
Merge pull request libgit2#4317 from libgit2/ethomson/libcurl_build
Build with patched libcurl
2 parents 20d3000 + c582fa4 commit 8f9d2bb

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# see travis-ci.org for details
33

44
language: c
5+
dist: trusty
56

67
os:
78
- linux
@@ -20,17 +21,8 @@ env:
2021
- OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
2122
- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"
2223

23-
addons:
24-
apt:
25-
packages:
26-
- cmake
27-
- libssh2-1-dev
28-
- openssh-client
29-
- openssh-server
30-
- valgrind
31-
3224
dist: trusty
33-
sudo: false
25+
sudo: true
3426

3527
matrix:
3628
fast_finish: true
@@ -56,7 +48,7 @@ matrix:
5648
- env: COVERITY=1
5749

5850
install:
59-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi
51+
- ./script/install-deps-${TRAVIS_OS_NAME}.sh
6052

6153
# Run the Build script and tests
6254
script:

script/cibuild.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ cat >~/sshd/sshd_config<<-EOF
5050
ListenAddress 0.0.0.0
5151
Protocol 2
5252
HostKey ${HOME}/sshd/id_rsa
53+
PidFile ${HOME}/sshd/pid
5354
RSAAuthentication yes
5455
PasswordAuthentication yes
5556
PubkeyAuthentication yes
@@ -99,7 +100,7 @@ if [ -e ./libgit2_clar ]; then
99100

100101
fi
101102

102-
killall sshd
103+
kill $(cat "$HOME/sshd/pid")
103104

104105
export GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
105106
export GITTEST_REMOTE_USER="libgit2test"

script/install-deps-linux.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
if [ -z "$PRECISE" ]; then
6+
echo "deb http://libgit2deps.edwardthomson.com trusty libgit2deps" | sudo tee -a /etc/apt/sources.list
7+
sudo apt-key adv --keyserver pgp.mit.edu --recv 99131CD5
8+
sudo apt-get update -qq
9+
sudo apt-get install -y curl libcurl3 libcurl3-gnutls libcurl4-gnutls-dev
10+
fi
11+
12+
sudo apt-get install -y cmake libssh2-1-dev openssh-client openssh-server valgrind

0 commit comments

Comments
 (0)