-
Notifications
You must be signed in to change notification settings - Fork 632
Validate with libtidy on travis #1420
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
Conversation
HTML validation on Travis has been discussed before, I think. IMO it's a bad idea to check every build:
I rather think that occasional validations should be sufficient. |
Hi, I've updated the PR using libtidy (around 40sec to check all files) and fixes the errors hope we could reconsider including the changes, thanks |
.travis.yml
Outdated
@@ -1,9 +1,14 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated change
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its yaml headers recommended by linters should i remove it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in fea533e
It‘s a little confusing: this is supposed to target CI, but commit message says „locally“. |
you are right its confusing i will remove this |
After a closer look I feel I have to close this PR, since it doesn‘t make any sense to run on CI in this form, and would even be harmful. The problem is that the validation task does not check the current build but the already deployed site. This would mean that a PR introducing errors would not fail on CI, but all subsequent PRs would, regardless of whether they introduce errors or not. |
As to the general question whether this check should (in a fixed version) be added to CI: 40 seconds is not too bad, but personally I’m still undecided and would like to have some other opinions. |
This is not correct this test the current branch since it check the build-ed |
Reopened in #1990 to have team feedback |
Then please remind me what is the meaning of the Update: it seems besides getting displayed the URL has no use. |
Use libtidy https://github.com/htacg/tidy-html5
for complete validation of the website, just excluding
examples
directory (inserted in javascript).Also update validate-website gem.
Time ~ 40sec for
check:markup
cf https://travis-ci.org/ruby/www.ruby-lang.org/builds/501125031#L582Cheers