mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Added .travis.yml for CI
This commit is contained in:
parent
6cbf9ef2c2
commit
3b253f48ae
3 changed files with 16 additions and 2 deletions
14
.travis.yml
Normal file
14
.travis.yml
Normal file
|
@ -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
|
|
@ -26,7 +26,7 @@ module.exports = function (grunt) {
|
||||||
|
|
||||||
grunt.registerTask("prod",
|
grunt.registerTask("prod",
|
||||||
"Creates a production-ready build. Use the --msg flag to add a compile message.",
|
"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",
|
grunt.registerTask("release",
|
||||||
"Prepares and deploys a production version of CyberChef to the gh-pages branch.",
|
"Prepares and deploys a production version of CyberChef to the gh-pages branch.",
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
"zlibjs": "^0.2.0"
|
"zlibjs": "^0.2.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "grunt dev",
|
"build": "grunt prod",
|
||||||
"test": "grunt test",
|
"test": "grunt test",
|
||||||
"docs": "grunt docs"
|
"docs": "grunt docs"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue