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

Remove duplicate before_install section in .travis.yml #15581

Merged
merged 1 commit into from
Sep 27, 2016

Conversation

chrismytton
Copy link
Contributor

What does this do?

This removes a duplicate before_install section from .travis.yml that I accidentally added in #15573.

Why was this needed?

Deploys of everypolitician.org were failing because I'd overwritten the before_install section that was adding credentials to .netrc, so git didn't have the correct credentials available to push to viewer-static.

Relevant Issue(s)

#15573 was the pull request that introduced the problem.

When I added the script to install html-tidy I accidentally created a
second, duplicate, `before_install` section. Because of the way YAML
works this silently overwrote the other `before_install` section which
was setting the contents of `.netrc` so that git had some credentials to
use to deploy.

This change combines the two sections into one.
@tmtmtmtm tmtmtmtm temporarily deployed to everypolitician-viewe-pr-15581 September 27, 2016 11:24 Inactive
@chrismytton
Copy link
Contributor Author

@tmtmtmtm 👀

Copy link
Contributor

@tmtmtmtm tmtmtmtm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch. I'm merging because we really need this live, but this makes me think we really need to find some sort of way of testing files like this. Any suggestions?

@tmtmtmtm tmtmtmtm merged commit 1e29f40 into master Sep 27, 2016
@tmtmtmtm tmtmtmtm removed the 3 - WIP label Sep 27, 2016
@chrismytton
Copy link
Contributor Author

A little digging around led me to ruby/psych#79 (comment) which suggests using https://github.com/adrienverge/yamllint. That's written in python but should be possible to get it running on Travis (it would be nice if Travis could spit out a warning but oh well!)

@tmtmtmtm tmtmtmtm deleted the fix-viewer-sinatra-deploy branch October 1, 2016 16:11
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.

2 participants