Add a 'test:ci' script with not colored output for Jenkins
authorFrank Bessou <frank.bessou@logilab.fr>
Wed, 19 Apr 2017 11:50:55 +0200
changeset 132 2b6ce8199a46
parent 131 8b57e0779065
child 133 72e439b9b15f
Add a 'test:ci' script with not colored output for Jenkins
Jenkinsfile
package.json
--- a/Jenkinsfile	Mon Apr 24 12:18:10 2017 +0200
+++ b/Jenkinsfile	Wed Apr 19 11:50:55 2017 +0200
@@ -11,7 +11,7 @@
     }
 
     stage('Tests') {
-        sh 'npm run test'
+        sh 'npm run test:ci'
         junit 'reports/karma.junit'
     }
 }
--- a/package.json	Mon Apr 24 12:18:10 2017 +0200
+++ b/package.json	Wed Apr 19 11:50:55 2017 +0200
@@ -54,6 +54,7 @@
   },
   "scripts": {
     "test:watch": "karma start --reporters mocha",
+    "test:ci": "karma start --single-run --no-colors || true",
     "test": "karma start --single-run || true",
     "build": "webpack --progress --config development.config.js",
     "watch": "webpack --progress -d --watch",