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

Fail build if warnings are emitted. #1118

Merged
merged 4 commits into from Oct 25, 2013
Merged

Conversation

myronmarston
Copy link
Member

This is another go at what @xaviershay was trying to achieve in #1117. I tried it by introducing the warning I mentioned in the comments there, and it works :).

Basically, this relies on the fact that ruby prints its warnings to $stderr.

@xaviershay
Copy link
Member

Nice one, I didn't think of stderr.

This is necessary so that only ruby warnings go to
stderr, so that we can fail the build for introducing
ruby warnings.
TypeError: $stderr must have write method, RSpec::StdErrSplitter given
JonRowe added a commit that referenced this pull request Oct 25, 2013
@JonRowe JonRowe merged commit ed8898c into master Oct 25, 2013
@JonRowe
Copy link
Member

JonRowe commented Oct 25, 2013

Nice one :)

@JonRowe JonRowe deleted the fail-build-for-ruby-warnings branch October 25, 2013 21:30
@myronmarston
Copy link
Member Author

Do we want to move this to rspec-support at some point?

I did it here as a proof-of-concept more than anything.

@JonRowe
Copy link
Member

JonRowe commented Oct 25, 2013

I think that's a good idea, I'll take care of it this week

On Saturday, 26 October 2013, Myron Marston wrote:

Do we want to move this to rspec-support at some point?

I did it here as a proof-of-concept more than anything.


Reply to this email directly or view it on GitHubhttps://github.com//pull/1118#issuecomment-27128781
.

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.

None yet

3 participants