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:
@@ -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.')
|
||||
}
|
||||
Reference in New Issue
Block a user