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 CI: Fail build if regenerated xref and grammar files don't match those in repository #780

Closed
wants to merge 3 commits into from

Conversation

godbyk
Copy link
Contributor

@godbyk godbyk commented Jun 30, 2016

This patch causes the Travis CI builds to fail if they detect that the newly generated grammar and xref files differ from those committed to the git repository.

Figure PDFs are currently ignored as regenerated PDFs will always differ from the committed PDFs due to changed metadata (build date/time, primarily). If a better solution for diffing the PDFs is found, we can add this test in the future.

This PR follows the discussion near the end of #635.

@godbyk godbyk mentioned this pull request Jun 30, 2016
@godbyk
Copy link
Contributor Author

godbyk commented Jun 30, 2016

One alternative that you may prefer would be to have these tests as a separate build type (their own row in the matrix). This would allow the other builds to complete and only fail if building std.pdf failed. The test build would fail only if the generated files differed from those in the repository. Which do you prefer?

@godbyk
Copy link
Contributor Author

godbyk commented Jul 2, 2016

An example of what having the tests as a separate matrix item looks like is at https://travis-ci.org/godbyk/draft/builds/141772422.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 18, 2016

This is obsolete after PR #816.

@tkoeppe tkoeppe closed this Jul 18, 2016
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

2 participants