Commit b4d2c7cb by Carlos Martín Nieto

Merge pull request #3264 from arthurschreiber/fast-builds

Fast builds?
parents cfafeb84 32f538ae
...@@ -20,6 +20,17 @@ env: ...@@ -20,6 +20,17 @@ env:
- OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release" - OPTIONS="-DTHREADSAFE=ON -DCMAKE_BUILD_TYPE=Release"
- OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON" - OPTIONS="-DTHREADSAFE=OFF -DBUILD_EXAMPLES=ON"
addons:
apt:
packages:
- cmake
- libssh2-1-dev
- openssh-client
- openssh-server
- valgrind
sudo: false
matrix: matrix:
fast_finish: true fast_finish: true
exclude: exclude:
...@@ -44,7 +55,7 @@ matrix: ...@@ -44,7 +55,7 @@ matrix:
OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug" OPTIONS="-DBUILD_CLAR=ON -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Debug"
install: 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 # Run the Build script and tests
script: script:
...@@ -52,7 +63,6 @@ script: ...@@ -52,7 +63,6 @@ script:
# Run Tests # Run Tests
after_success: 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 - 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 # Only watch the development and master branches
......
...@@ -34,8 +34,6 @@ killall git-daemon ...@@ -34,8 +34,6 @@ killall git-daemon
if [ "$TRAVIS_OS_NAME" = "osx" ]; then if [ "$TRAVIS_OS_NAME" = "osx" ]; then
echo 'PasswordAuthentication yes' | sudo tee -a /etc/sshd_config echo 'PasswordAuthentication yes' | sudo tee -a /etc/sshd_config
else
sudo start ssh
fi fi
ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
......
#!/bin/sh
set -x
sudo apt-get -qq update &&
sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server
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