Allow executing unit tests during the build phase 74/21074/2
authorMaxime Millette-Coulombe <mmcoulombe@inocybe.com>
Mon, 25 May 2015 20:36:42 +0000 (16:36 -0400)
committerMaxime Millette-Coulombe <mmcoulombe@inocybe.com>
Mon, 25 May 2015 20:36:42 +0000 (16:36 -0400)
Change-Id: Iff94903289283e45f6db003eefa59b1cfb282929
Signed-off-by: Maxime Millette-Coulombe <mmcoulombe@inocybe.com>
dlux-web/Gruntfile.js

index 7d0ec23e916bcf5b285b032e37c9cd03ee6bc8b6..c83aa9f53ef1ae4168a05d6d4d3a20fb265a8755 100644 (file)
@@ -250,7 +250,7 @@ module.exports = function ( grunt ) {
               }\r
             }\r
         }\r
-       },\r
+    },\r
 \r
     /**\r
      * `grunt concat` concatenates multiple source files into a single file.\r
@@ -425,7 +425,8 @@ module.exports = function ( grunt ) {
         port: 9877 // IMPORTANT!\r
       },\r
       continuous: {\r
-        singleRun: true\r
+        singleRun: true,\r
+        browsers: ['PhantomJS']\r
       }\r
     },\r
 \r
@@ -649,13 +650,13 @@ module.exports = function ( grunt ) {
       'copy:build_appjs', 'copy:copy_template', 'copy:build_vendorimages', 'copy:build_vendorjs', 'copy:build_vendorcss', 'karmaconfig', 'index:build'\r
   ]);\r
 \r
-  grunt.registerTask( 'build', ['replace:development', 'common']);\r
+  grunt.registerTask( 'build', ['replace:development', 'common', 'karma:continuous']);\r
 \r
   /**\r
    * The `compile` task gets your app ready for deployment by concatenating and\r
    * minifying your code.\r
    */\r
-  grunt.registerTask( 'compile', ['replace:production', 'common', 'ngAnnotate', 'shell:requirejs']);\r
+  grunt.registerTask( 'compile', ['replace:production', 'common', 'karma:continuous', 'ngAnnotate', 'shell:requirejs']);\r
 \r
   /**\r
    * A utility function to get all app JavaScript sources.\r