-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
38 lines (38 loc) · 1.41 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: node_js
env:
global:
- secure: "NSQzc92/y88tGELjiDUSLFkUgUL1pvUWa0r5p9L8Ybv05RIH27cBg07AH3gjg1ThCGuvLWyCZihs7ynap17v6gyLUhX4zqYWYkYB0lqMylBcDcwZLilY8H6ldKsSaSfYcWxsxllT3HeMlm8RQlIFAEUmQnIr7XwdPzgk4ma0qfE="
- secure: "KYFvcPSVKNFOCOi/FlSjzZ+j1IwTGhiABj5xeSM/dAwaOzmsDjTrc1vrYHY2oocJoOl0BHqTLShaSK6vIfGCSD8M134nihdiQq6CtTtALOiOF4vxAEaZCxr0U8YRhs/kz/3SSEouYBXVruDjif1HA2mw9HElOpxjzAAFMGW6Djg="
- DEPLOY_BETA_PATH=/var/www/betahelp/widgets/
- DEPLOY_PROD_PATH=/var/www/help/widgets/
node_js:
- 8
before_script:
- npm install grunt-cli -g
script:
- grunt
before_deploy:
- cd dist/ && zip -r ../ods-widgets.zip . && cd ..
- cp -r ./dist ./docs
- cp ./docs-load-css.js ./docs/
- openssl aes-256-cbc -K $encrypted_17bd2ea19db8_key -iv $encrypted_17bd2ea19db8_iv -in .travis.deploy.enc -out .travis.deploy -d
- chmod 600 .travis.deploy
deploy:
- provider: script
script: bash copytoserver.sh $DEPLOY_BETA_PATH
skip_cleanup: true
on:
branch: develop
- provider: script
script: bash copytoserver.sh $DEPLOY_PROD_PATH
skip_cleanup: true
on:
branch: master
- provider: releases
api_key:
secure: Qv05pjUmwptNgHI/aFbJ8JEnBiR+qJTUXObUC7T1Rj6S5Agj4uYdMn9PJiErKjbgV9JD3Y7J+AN8qvpM1IFr8NQXd3a89rZ5LiOLIIL6kgoO857tL4pJP0QCs+2YZbg66xDTZ3KjiZp3PKo4UtwT9t7faSgj5e5JISpa0gptdT0=
file: ./ods-widgets.zip
skip_cleanup: true
on:
branch: master
tags: true