summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-27 20:34:04 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-27 20:34:04 +0200
commitb4d2c7cb3afbed611091784ef1abe9a546f8ed82 (patch)
treed7061ee215a79ea14633f049c3dbd51444931914
parentcfafeb843d3512d2bc06a80511c51bbc70897ac4 (diff)
parent32f538ae2805eb9efe312e5ce26e5b32559eb3ba (diff)
downloadlibgit2-b4d2c7cb3afbed611091784ef1abe9a546f8ed82.tar.gz
Merge pull request #3264 from arthurschreiber/fast-builds
Fast builds?
-rw-r--r--.travis.yml14
-rwxr-xr-xscript/cibuild.sh2
-rwxr-xr-xscript/install-deps-linux.sh6
3 files changed, 12 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml
index 760847978..9022fdec2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,17 @@ env:
- OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"
+addons:
+ apt:
+ packages:
+ - cmake
+ - libssh2-1-dev
+ - openssh-client
+ - openssh-server
+ - valgrind
+
+sudo: false
+
matrix:
fast_finish: true
exclude:
@@ -44,7 +55,7 @@ matrix:
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug"
install:
- - ./script/install-deps-${TRAVIS_OS_NAME}.sh
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./script/install-deps-${TRAVIS_OS_NAME}.sh; fi
# Run the Build script and tests
script:
@@ -52,7 +63,6 @@ script:
# Run Tests
after_success:
- - if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then sudo apt-get -qq install valgrind; fi
- if [ "$TRAVIS_OS_NAME" = "linux" -a -n "$VALGRIND" ]; then valgrind --leak-check=full --show-reachable=yes --suppressions=./libgit2_clar.supp _build/libgit2_clar -ionline; fi
# Only watch the development and master branches
diff --git a/script/cibuild.sh b/script/cibuild.sh
index a11e7984f..de5df9ea8 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -34,8 +34,6 @@ killall git-daemon
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
echo 'PasswordAuthentication yes' | sudo tee -a /etc/sshd_config
-else
- sudo start ssh
fi
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
diff --git a/script/install-deps-linux.sh b/script/install-deps-linux.sh
deleted file mode 100755
index 347922b89..000000000
--- a/script/install-deps-linux.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-set -x
-
-sudo apt-get -qq update &&
-sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server