3 var lint = require("./lint/lint");
7 lint.checkDir("addon");
8 lint.checkDir("keymap");
10 var ok = lint.success();
12 var files = new (require('node-static').Server)('.');
14 var server = require('http').createServer(function (req, res) {
15 req.addListener('end', function () {
16 files.serve(req, res);
18 }).addListener('error', function (err) {
20 }).listen(3000, function () {
21 var child_process = require('child_process');
22 child_process.exec("which phantomjs", function (err) {
24 console.error("PhantomJS is not installed. Download from http://phantomjs.org");
27 var cmd = 'phantomjs test/phantom_driver.js';
28 child_process.exec(cmd, function (err, stdout) {
31 process.exit(err || !ok ? 1 : 0);