|
@@ -425,8 +425,8 @@ var buildExternalLibrary = function (library, settings, watch) {
|
|
* The default task, concat and min the main BJS files.
|
|
* The default task, concat and min the main BJS files.
|
|
*/
|
|
*/
|
|
gulp.task("default", function (cb) {
|
|
gulp.task("default", function (cb) {
|
|
- // runSequence("typescript-all", "intellisense", "tests-browserStack", cb);
|
|
|
|
- runSequence("typescript-all", "intellisense", "typedoc-all", cb);
|
|
|
|
|
|
+ // runSequence("typescript-all", "intellisense", "typedoc-all", "tests-validation-virtualscreen", "tests-validation-browserstack", cb);
|
|
|
|
+ runSequence("typescript-all", "intellisense", "typedoc-all", "tests-validation-virtualscreen", cb);
|
|
});
|
|
});
|
|
|
|
|
|
gulp.task("mainBuild", function (cb) {
|
|
gulp.task("mainBuild", function (cb) {
|
|
@@ -565,31 +565,9 @@ gulp.task("webserver", function () {
|
|
gulp.task("run", ["watch", "webserver"], function () {
|
|
gulp.task("run", ["watch", "webserver"], function () {
|
|
});
|
|
});
|
|
|
|
|
|
-gulp.task("tests-integration", function (done) {
|
|
|
|
- var kamaServerOptions = {
|
|
|
|
- configFile: __dirname + "/../../tests/validation/karma.conf.js",
|
|
|
|
- singleRun: false
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- var server = new karmaServer(kamaServerOptions, done);
|
|
|
|
- server.start();
|
|
|
|
-});
|
|
|
|
-
|
|
|
|
-gulp.task("tests-browserStack", function (done) {
|
|
|
|
- if (!process.env.TRAVIS) {
|
|
|
|
- done();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- var kamaServerOptions = {
|
|
|
|
- configFile: __dirname + "/../../tests/validation/karma.conf.browserstack.js",
|
|
|
|
- singleRun: true
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- var server = new karmaServer(kamaServerOptions, done);
|
|
|
|
- server.start();
|
|
|
|
-});
|
|
|
|
-
|
|
|
|
|
|
+/**
|
|
|
|
+ * Cleans map and js files from the src folder.
|
|
|
|
+ */
|
|
gulp.task("clean-JS-MAP", function () {
|
|
gulp.task("clean-JS-MAP", function () {
|
|
return del([
|
|
return del([
|
|
"../../src/**/*.js.map", "../../src/**/*.js"
|
|
"../../src/**/*.js.map", "../../src/**/*.js"
|
|
@@ -769,4 +747,52 @@ gulp.task("typedoc-generateValidationBaseline", function () {
|
|
*/
|
|
*/
|
|
gulp.task("typedoc-all", function (cb) {
|
|
gulp.task("typedoc-all", function (cb) {
|
|
runSequence("typedoc-generate", "typedoc-validate", "typedoc-generateValidationBaseline", cb);
|
|
runSequence("typedoc-generate", "typedoc-validate", "typedoc-generateValidationBaseline", cb);
|
|
-});
|
|
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Launches the KARMA validation tests in chrome in order to debug them.
|
|
|
|
+ * (Can only be launch locally.)
|
|
|
|
+ */
|
|
|
|
+gulp.task("tests-validation-karma", function (done) {
|
|
|
|
+ var kamaServerOptions = {
|
|
|
|
+ configFile: __dirname + "/../../tests/validation/karma.conf.js",
|
|
|
|
+ singleRun: false
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ var server = new karmaServer(kamaServerOptions, done);
|
|
|
|
+ server.start();
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Launches the KARMA validation tests in ff or virtual screen ff on travis for a quick analysis during the build.
|
|
|
|
+ * (Can only be launch on any branches.)
|
|
|
|
+ */
|
|
|
|
+gulp.task("tests-validation-virtualscreen", function (done) {
|
|
|
|
+ var kamaServerOptions = {
|
|
|
|
+ configFile: __dirname + "/../../tests/validation/karma.conf.js",
|
|
|
|
+ singleRun: true,
|
|
|
|
+ browsers: ['Firefox']
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ var server = new karmaServer(kamaServerOptions, done);
|
|
|
|
+ server.start();
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Launches the KARMA validation tests in browser stack for remote and cross devices validation tests.
|
|
|
|
+ * (Can only be launch from secure branches.)
|
|
|
|
+ */
|
|
|
|
+gulp.task("tests-validation-browserstack", function (done) {
|
|
|
|
+ if (!process.env.BROWSER_STACK_USERNAME) {
|
|
|
|
+ done();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ var kamaServerOptions = {
|
|
|
|
+ configFile: __dirname + "/../../tests/validation/karma.conf.browserstack.js",
|
|
|
|
+ singleRun: true
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ var server = new karmaServer(kamaServerOptions, done);
|
|
|
|
+ server.start();
|
|
|
|
+});
|