Skip to content

Add Travis-CI support #546

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

Closed
wants to merge 3 commits into from
Closed

Add Travis-CI support #546

wants to merge 3 commits into from

Conversation

lhchavez
Copy link
Contributor

@lhchavez lhchavez commented May 6, 2017

This change adds the tidy-html5-tests repository as a submodule and
makes Travis-CI run the full suite of tests on every commit and PR.

This change is intended to fix #545,
but since this checks out the test repository as a submodule, there are two
downsides:

  • Any commit that requires modifications to the tests would either appear
    as broken, or not receive automated coverage (in the case new tests are
    to be added).
  • Every time the test repository is updated, the submodule must be uprevved.

This change also only runs the testbase set, because I could not find how to
run the others correctly.

This change adds the tidy-html5-tests repository as a submodule and
makes Travis-CI run the full suite of tests on every commit and PR.
.gitmodules Outdated
@@ -0,0 +1,3 @@
[submodule "tests"]
path = tests
url = https://github.com/lhchavez/tidy-html5-tests.git
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that this needs to be changed to https://github.com/htacg/tidy-html5-tests , but since I needed to test this out with my own repository I had to hardcode my own fork here.

If we ever decide to go forward, I'll change this with the correct URL.

@lhchavez
Copy link
Contributor Author

lhchavez commented May 6, 2017

PTAL!

This is how it would look like: https://travis-ci.org/lhchavez/tidy-html5/builds/229552310 . Every pull request would also display a small green / red badge with the result of the tests, for immediate feedback to any PR author.

Note that this requires htacg/tidy-html5-tests#18 in order to work.

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.

Support for Continuous Integration
2 participants