#!/bin/sh # License: CC0 1.0 Universal # https://creativecommons.org/publicdomain/zero/1.0/legalcode set -eufx D="$(dirname "$0")" . "$D/common.sh" . "$D/travis-doc-upload.cfg" [ "$TRAVIS_BRANCH" = master ] || [ "$TRAVIS_BRANCH" = "doc-test" ] # FIXME: ssh known hosts handling does not appear to work with travis-osx [ "$TRAVIS_OS_NAME" != osx ] [ "$TRAVIS_PULL_REQUEST" = false ] set +x eval key=\$encrypted_${SSH_KEY_TRAVIS_ID}_key eval iv=\$encrypted_${SSH_KEY_TRAVIS_ID}_iv set -x # TODO: generalize over other key types (not just rsa) mkdir -p ~/.ssh # travis OSX doesn't add these automatically (linux does) echo >> ~/.ssh/config <