From 3b253f48ae73ba741c63443f66eb160438d83a31 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Thu, 30 Mar 2017 19:58:58 +0100 Subject: [PATCH] Added .travis.yml for CI --- .travis.yml | 14 ++++++++++++++ Gruntfile.js | 2 +- package.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e56d44b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: node_js +node_js: + - "node" +install: npm install +before_script: + - npm install -g grunt +script: + - grunt lint + - grunt test + - grunt docs + - grunt node + - grunt prod +deploy: + skip_cleanup: true diff --git a/Gruntfile.js b/Gruntfile.js index 692de0e..3d77ab0 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -26,7 +26,7 @@ module.exports = function (grunt) { grunt.registerTask("prod", "Creates a production-ready build. Use the --msg flag to add a compile message.", - ["eslint", "test", "clean:prod", "clean:docs", "jsdoc", "webpack:webProd", "inline", "chmod"]); + ["eslint", "clean:prod", "webpack:webProd", "inline", "chmod"]); grunt.registerTask("release", "Prepares and deploys a production version of CyberChef to the gh-pages branch.", diff --git a/package.json b/package.json index 6aba8da..38dc280 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "zlibjs": "^0.2.0" }, "scripts": { - "build": "grunt dev", + "build": "grunt prod", "test": "grunt test", "docs": "grunt docs" }