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