quick fix for runner, added npm script to recompile runner

use less cores (24 vs 32)
use bundled compiler to rebuild
added '$ npm run tsc_runner'
This commit is contained in:
Bart van der Schoor
2014-04-07 01:52:46 +02:00
parent c5b96cf327
commit d7f85b5df8
3 changed files with 20 additions and 6 deletions
+7 -4
View File
@@ -1290,13 +1290,19 @@ var DT;
if (argv.help) {
optimist.showHelp();
var pkg = require('../../package.json');
console.log('Scripts:');
console.log('');
Lazy(pkg.scripts).keys().each(function (key) {
console.log(' $ npm run ' + key);
});
process.exit(0);
}
var testFull = process.env['TRAVIS_BRANCH'] ? /\w\/full$/.test(process.env['TRAVIS_BRANCH']) : false;
new TestRunner(dtPath, {
concurrent: argv['single-thread'] ? 1 : Math.max(cpuCores, 2),
concurrent: argv['single-thread'] ? 1 : Math.max(Math.min(24, cpuCores), 2),
tscVersion: argv['tsc-version'],
testChanges: testFull ? false : argv['test-changes'],
skipTests: argv['skip-tests'],
@@ -1312,7 +1318,4 @@ var DT;
process.exit(2);
});
})(DT || (DT = {}));
//grunt-start
/// <reference path="../runner.ts" />
//grunt-end
//# sourceMappingURL=runner.js.map
+11 -1
View File
@@ -34,6 +34,10 @@ module DT {
export var DEFAULT_TSC_VERSION = '0.9.7';
interface PackageJSON {
scripts: {[key:string]: string};
}
/////////////////////////////////
// Single test
/////////////////////////////////
@@ -333,13 +337,19 @@ module DT {
if (argv.help) {
optimist.showHelp();
var pkg: PackageJSON = require('../../package.json');
console.log('Scripts:');
console.log('');
Lazy(pkg.scripts).keys().each((key) => {
console.log(' $ npm run ' + key);
});
process.exit(0);
}
var testFull = process.env['TRAVIS_BRANCH'] ? /\w\/full$/.test(process.env['TRAVIS_BRANCH']) : false;
new TestRunner(dtPath, {
concurrent: argv['single-thread'] ? 1 : Math.max(cpuCores, 2),
concurrent: argv['single-thread'] ? 1 : Math.max(Math.min(24, cpuCores), 2),
tscVersion: argv['tsc-version'],
testChanges: testFull ? false : argv['test-changes'], // allow magic branch
skipTests: argv['skip-tests'],