2017-03-30 20:58:58 +02:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2017-03-30 21:54:46 +02:00
|
|
|
- node
|
2017-03-30 20:58:58 +02:00
|
|
|
install: npm install
|
|
|
|
before_script:
|
|
|
|
- npm install -g grunt
|
|
|
|
script:
|
|
|
|
- grunt lint
|
|
|
|
- grunt test
|
|
|
|
- grunt docs
|
|
|
|
- grunt node
|
|
|
|
- grunt prod
|
2017-03-31 11:56:08 +02:00
|
|
|
before_deploy:
|
|
|
|
- grunt copy:ghPages
|
2017-03-30 20:58:58 +02:00
|
|
|
deploy:
|
2017-03-30 21:54:46 +02:00
|
|
|
- provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
local_dir: build/prod/
|
|
|
|
target_branch: gh-pages
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
- provider: releases
|
|
|
|
skip_cleaup: true
|
|
|
|
api_key:
|
2017-03-31 12:27:39 +02:00
|
|
|
secure: $GITHUB_API_KEY
|
2017-03-30 22:18:33 +02:00
|
|
|
file:
|
|
|
|
- build/prod/cyberchef.htm
|
|
|
|
- build/node/CyberChef.js
|
2017-03-30 21:54:46 +02:00
|
|
|
on:
|
|
|
|
repo: gchq/CyberChef
|
|
|
|
tags: true
|