summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-26 22:38:54 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-06-26 22:58:39 +0200
commit8733993599d9d9a8fe1b042a1e18d6ecb9b0a0b2 (patch)
tree006177a17fd9e5e7e950cc337b66894a41e977f6
parente26b08d32c627efcbf7ab01a7296de89acc168fd (diff)
downloadlibgit2-cmn/ssh-retry.tar.gz
travis: enable password authentication on OSXcmn/ssh-retry
Our ssh tests assume that the server supports password authentication in a few places. This is convenient as we're not testing authentication methods, but what happens around them. Tell sshd on OSX to accept this form of authentication.
-rwxr-xr-xscript/cibuild.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/script/cibuild.sh b/script/cibuild.sh
index a683590c7..ef2ac6e8e 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -22,7 +22,13 @@ ctest -V . || exit $?
# can do the push tests over it
killall git-daemon
-sudo start ssh
+
+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
cat ~/.ssh/id_rsa.pub >>~/.ssh/authorized_keys
ssh-keyscan -t rsa localhost >>~/.ssh/known_hosts