Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

mbilker
Copy link
Contributor

@mbilker mbilker commented Dec 8, 2015

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.

…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.
@bengotow
Copy link
Contributor

Hey — thanks! cc @emorikawa

@emorikawa
Copy link
Contributor

@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.

@emorikawa emorikawa closed this Dec 10, 2015
@mbilker
Copy link
Contributor Author

mbilker commented Dec 10, 2015

Shoot. ssh-keyscan on the OS X hosts is failing because it doesn't recognize ECDSA.

@mbilker
Copy link
Contributor Author

mbilker commented Dec 10, 2015

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.

@mbilker mbilker deleted the travis-fix branch December 11, 2015 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants