-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Travis build script rework to allow completion under Pull Requests #613
Conversation
…d process Found the order at https://docs.travis-ci.com/user/customizing-the-build/. In nylas/nylas-mail@989f38c the entire build script was merged from Evan Morikawa, which reordered the whole Travis build script. athis commit reorders the to have the Travis build environment config at the beginning of the script and the build process at the end and the Travis secure variables at the end of the script.
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.
Hey — thanks! cc @emorikawa |
@mbilker this looks great. Thanks for re-ordering to be more sensible and making it work on non-mainline branches. I just pushed after a rebase. |
Shoot. |
Weird thing is. https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/addons/ssh_known_hosts.rb#L42-L47 says it only sets it to RSA and DSA on OS X. |
This PR stems from recent failures I encountered at my forked repository and with the PR's I sent here.
In 989f38c the entire build script was merged from Evan Morikawa's branch for integrating AppVeyor, which reordered the whole Travis build script. This PR reorders the to have the Travis build environment config at the beginning of the script and the build process at the end and the Travis secure variables at the end of the script.
I also added added some conditions to run the decryption commands only on the main repository using
TRAVIS_PULL_REQUEST
from Testing Pull Requests.