Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While working on #123, a number of my builds segfaulted and failed during their runs under Travis (example 1). I investigated and noticed that segfaults appear to occur sporadically in other builds that did not contain my code: example2, example 3.
I have been unable to reproduce the segfaults locally under any of the versions of Ruby we test with. 馃槥
Per google searches, SimpleCov seems to be anecdotally related to segmentation faults experienced running builds in CI, so this PR checks for a well-known environment variable
CI
(supported under both Travis and CircleCI) and doesn't enable SimpleCov if present.If this does not solve the issue, we may need to use something like travis-codedump to diagnose the segfaults.