2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Move from htmllint to Travis-only vnu.jar.

This commit is contained in:
Bardi Harborow
2017-09-27 14:41:58 +00:00
committed by XhmikosR
parent 5e7a9afe35
commit 258507b756
4 changed files with 25 additions and 20 deletions
+23
View File
@@ -0,0 +1,23 @@
'use strict'
const childProcess = require('child_process')
const fs = require('fs')
if (fs.existsSync('vnu.jar')) {
childProcess.exec('java -version', function (error) {
if (error) {
console.error('skipping HTML lint test. java missing.')
return
}
const vnu = childProcess.spawn(
'java',
['-jar', 'vnu.jar', '--skip-non-html', '_gh_pages/'],
{ stdio: 'inherit' }
)
vnu.on('exit', process.exit)
})
} else {
console.error('skipping HTML lint test. vnu.jar missing.')
}