summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2017-07-24 17:53:32 +0100
committerEdward Thomson <ethomson@microsoft.com>2017-07-24 17:53:32 +0100
commitc582fa4eb6bee7880f04080aa80357cca406e448 (patch)
tree0c4c0c7a89e7f34403cc78a11a07af9dee8a3f48 /script
parent697583ea3aceb1379c576515ffa713ba29c50437 (diff)
downloadlibgit2-c582fa4eb6bee7880f04080aa80357cca406e448.tar.gz
travis: only install custom libcurl on trusty
Diffstat (limited to 'script')
-rwxr-xr-xscript/install-deps-linux.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh
index c18b03bfe..15bac4d08 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