From 4f6f25044e8aa900678cc73f214f0e325ad0a422 Mon Sep 17 00:00:00 2001 From: mbilker Date: Mon, 7 Dec 2015 21:29:12 -0500 Subject: [PATCH] fix(travis): use the ssh_known_hosts addon to run ssh-keyscan Travis provides a wonderful helper addon documented at https://docs.travis-ci.com/user/ssh-known-hosts/. The behavior changed moves the ssh-keyscan from the before_install stage to the addons stage. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c299962c7..a766c0a59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ git: submodules: false addons: + ssh_known_hosts: + - github.com apt: sources: - ubuntu-toolchain-r-test @@ -41,7 +43,6 @@ matrix: before_install: - openssl aes-256-cbc -k "$DECRYPTION_PASSWORD" -in build/resources/ssh/nylas-n1-ci-ssh.openssl.enc -out nylas-n1-ci-ssh -d - mv nylas-n1-ci-ssh ~/.ssh/id_rsa -- ssh-keyscan github.com >> ~/.ssh/known_hosts - chmod 400 ~/.ssh/id_rsa - git submodule update --init --recursive - 2>/dev/null 1>/dev/null openssl aes-256-cbc -K $encrypted_d583b56b822e_key -iv $encrypted_d583b56b822e_iv -in build/resources/nylas/encrypted_certificates/travis/travis-files.tar.enc -out build/resources/nylas/encrypted_certificates/travis/travis-files.tar -d