only run traceur and esnext on ALL_6TO5_TESTS environment variable

This commit is contained in:
Sebastian McKenzie 2015-01-05 12:39:01 +11:00
parent f34907d518
commit b12734abd6
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,5 @@
if (!process.env.ALL_6TO5_TESTS) return;
require("./_transformation-helper")({
name: "esnext"
});

View File

@ -1,8 +1,17 @@
var _ = require("lodash");
if (!process.env.ALL_6TO5_TESTS) return;
var fs = require("fs");
var _ = require("lodash");
var traceurLoc = __dirname + "/../vendor/traceur";
if (!fs.existsSync(traceurLoc)) {
console.error("No vendor/traceur - run `git submodule update --init`");
process.exit(1);
}
require("./_transformation-helper")({
name: "traceur",
loc: __dirname + "/../vendor/traceur/test/feature",
loc: traceurLoc + "/test/feature",
ignoreSuites: [
"ObjectMixin",