Commit c582fa4eb6bee7880f04080aa80357cca406e448

Edward Thomson 2017-07-24T17:53:32

travis: only install custom libcurl on trusty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh
index c18b03b..15bac4d 100755
--- a/script/install-deps-linux.sh
+++ b/script/install-deps-linux.sh
@@ -2,7 +2,11 @@
 
 set -x
 
-echo "deb http://libgit2deps.edwardthomson.com trusty libgit2deps" | sudo tee -a /etc/apt/sources.list
-sudo apt-key adv --keyserver pgp.mit.edu --recv 99131CD5
-sudo apt-get update -qq
-sudo apt-get install -y cmake curl libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libssh2-1-dev openssh-client openssh-server valgrind
+if [ -z "$PRECISE" ]; then
+    echo "deb http://libgit2deps.edwardthomson.com trusty libgit2deps" | sudo tee -a /etc/apt/sources.list
+    sudo apt-key adv --keyserver pgp.mit.edu --recv 99131CD5
+    sudo apt-get update -qq
+    sudo apt-get install -y curl libcurl3 libcurl3-gnutls libcurl4-gnutls-dev
+fi
+
+sudo apt-get install -y cmake libssh2-1-dev openssh-client openssh-server valgrind