Skip to content

Commit da09f35

Browse files
committed
Jake hates deps
1 parent 2d7b217 commit da09f35

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Jakefile.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,9 @@ function deleteTemporaryProjectOutput() {
628628

629629
var testTimeout = 20000;
630630
desc("Runs the tests using the built run.js file. Syntax is jake runtests. Optional parameters 'host=', 'tests=[regex], reporter=[list|spec|json|<more>]', debug=true.");
631-
task("runtests", ["tests", builtLocalDirectory], function() {
631+
task("runtests", ["build-rules", "tests", builtLocalDirectory], function() {
632632
cleanTestDirs();
633633
var debug = process.env.debug || process.env.d;
634-
host = "mocha"
635634
tests = process.env.test || process.env.tests || process.env.t;
636635
var light = process.env.light || false;
637636
var testConfigFile = 'test.config';
@@ -653,7 +652,7 @@ task("runtests", ["tests", builtLocalDirectory], function() {
653652
reporter = process.env.reporter || process.env.r || 'mocha-fivemat-progress-reporter';
654653
// timeout normally isn't necessary but Travis-CI has been timing out on compiler baselines occasionally
655654
// default timeout is 2sec which really should be enough, but maybe we just need a small amount longer
656-
var cmd = host + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
655+
var cmd = "mocha" + (debug ? " --debug-brk" : "") + " -R " + reporter + tests + colors + ' -t ' + testTimeout + ' ' + run;
657656
console.log(cmd);
658657
exec(cmd, function() {
659658
deleteTemporaryProjectOutput();
@@ -833,7 +832,7 @@ var tslintRulesOutFiles = tslintRules.map(function(p) {
833832
desc("Compiles tslint rules to js");
834833
task("build-rules", tslintRulesOutFiles);
835834
tslintRulesFiles.forEach(function(ruleFile, i) {
836-
compileFile(tslintRulesOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ true, /*noOutFile*/ true, /*generateDeclarations*/ false, path.join(builtLocalDirectory, "tslint"));
835+
compileFile(tslintRulesOutFiles[i], [ruleFile], [ruleFile], [], /*useBuiltCompiler*/ false, /*noOutFile*/ true, /*generateDeclarations*/ false, path.join(builtLocalDirectory, "tslint"));
837836
});
838837

839838
function getLinterOptions() {

0 commit comments

Comments
 (0)