Sha256: 2bb3aabae3b24d6177d5f1668b0180721cd82dbc3dfe9a28d6a4b9895d3b37ad

Contents?: true

Size: 874 Bytes

Versions: 6

Compression:

Stored size: 874 Bytes

Contents

#!/usr/bin/env node

var lint = require("./lint/lint");

lint.checkDir("mode");
lint.checkDir("lib");
lint.checkDir("addon");

var ok = lint.success();

var files = new (require('node-static').Server)('.');

var server = require('http').createServer(function (req, res) {
  req.addListener('end', function () {
    files.serve(req, res);
  });
}).addListener('error', function (err) {
  throw err;
}).listen(3000, function () {
  var child_process = require('child_process');
  child_process.exec("which phantomjs", function (err) {
    if (err) {
      console.error("PhantomJS is not installed. Download from http://phantomjs.org");
      process.exit(1);
    }
    var cmd = 'phantomjs test/phantom_driver.js';
    child_process.exec(cmd, function (err, stdout) {
      server.close();
      console.log(stdout);
      process.exit(err || !ok ? 1 : 0);
    });
  });
});

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mdbe-0.1.0 public/libs/codemirror/test/run.js
maglev-database-explorer-0.0.5 public/libs/codemirror/test/run.js
maglev-database-explorer-0.0.4 public/libs/codemirror/test/run.js
maglev-database-explorer-0.0.3 public/libs/codemirror/test/run.js
maglev-database-explorer-0.0.2 public/libs/codemirror/test/run.js
maglev-database-explorer-0.0.1 public/libs/codemirror/test/run.js