Commit e523826c by Edward Thomson Committed by GitHub

Merge pull request #4321 from libgit2/ethomson/libcurl_build

travis: add custom apt sources
parents 668fa071 9dc21efd
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# see travis-ci.org for details # see travis-ci.org for details
language: c language: c
dist: trusty
os: os:
- linux - linux
...@@ -22,7 +21,23 @@ env: ...@@ -22,7 +21,23 @@ env:
- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DENABLE_WERROR=ON" - OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON -DENABLE_WERROR=ON"
dist: trusty dist: trusty
sudo: true sudo: false
addons:
apt:
sources:
- sourceline: 'deb http://libgit2deps.edwardthomson.com trusty libgit2deps'
key_url: 'https://pgp.mit.edu/pks/lookup?op=get&search=0x5656187599131CD5'
packages:
cmake
curl
libcurl3
libcurl3-gnutls
libcurl4-gnutls-dev
libssh2-1-dev
openssh-client
openssh-server
valgrind
matrix: matrix:
fast_finish: true fast_finish: true
...@@ -44,7 +59,7 @@ matrix: ...@@ -44,7 +59,7 @@ matrix:
- env: COVERITY=1 - env: COVERITY=1
install: install:
- ./script/install-deps-${TRAVIS_OS_NAME}.sh - if [ -f ./script/install-deps-${TRAVIS_OS_NAME}.sh ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi
# Run the Build script and tests # Run the Build script and tests
script: script:
......
#!/bin/sh
set -x
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment