-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (60 loc) · 4.01 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
dist: trusty
env:
global:
secure: "dtkn0UmqSLo9jAczPhowchEHr95qRHjuljO1SOQFz4JEPBGe9fmwGr+u1+Yh91YRDbixTiphLf0ClXtipUptk3gq8XaDMzsgb65InBE7G3wfbfX+cmlh8KPC/8WFU+Jfy8pkyHpNOjeagIymJ98+aJIeTFKsYevewVMEz/lDhRAjchFSCWrbST7SAxmRseKV+A+LxpwqhYBjOu4VKQ7piQpuQcQyJzQrAm5utfMTtNtdSutEtmz0XmABIl/nEY/4f13plnfPYQNMOQGH9uSh7KumHhGuJcf9xaaW/X9iApD8qJyeuutVCmh3VhM29R7cadJnpOJ1WDYVIMUfC+l1tXJPZJDdZTogEDt9Vw2b9pUfA/raWwZq7/zej41GgDEUANgyKvI8C0pz+bBfmXAJOG8ipQEodsY6n4UCSFO3gNDHr0Mi1MX92S7i4ibjG1mGQ1gUcQr3dP3NFl5bvp9bDu9QdAXZzuE4mMgLENnlJyh49gc5e1Bw1ivAmJQxknaFYoeeS/J2qbAHgM5TxdyJwaxMm8cLe2Rh3LLSonUsoxo1TgKxEtnS4hQMdyDtsdLtYBqlvvNnfqfivtgia2Mr/tgcOMnUhwlB4tTodnqikICZBdgvUuz+++JHHGhnRhm9gaYK6IW0jOinGQvLenXcMbrCxsVA9kgZStz+BH7jMCA="
stages:
- name: test
- name: deploy-live
if: branch = master AND type = push
- name: deploy-staging
if: branch = develop AND type = push
before_install:
- openssl aes-256-cbc -K $encrypted_12c8071d2874_key -iv $encrypted_12c8071d2874_iv -in siwecosdeploy_rsa.enc -out siwecosdeploy_rsa -d
- chmod 600 siwecosdeploy_rsa
matrix:
include:
- language: php
stage: test
php: 7.2
script:
- composer selfupdate
- composer install
- ./vendor/bin/phpcs --extensions=php --standard=$(pwd)/vendor/joomla/coding-standards/Joomla src/modules
- ./vendor/bin/phpcs --extensions=php --standard=$(pwd)/vendor/joomla/coding-standards/Joomla src/plugins
- language: node_js
stage: test
node_js: "8"
script:
- npm install
- gulp parse-template-scss
- gulp parse-critical-scss
- language: node_js
stage: deploy-staging
node_js: "8"
script:
- npm install
- gulp parse-template-scss
- gulp parse-critical-scss
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/modules/mod_accountbox ${SFTP_HOST}:/home/web4cshyx/html/staging.siwecos.de/modules
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/sealoftrust ${SFTP_HOST}:/home/web4cshyx/html/staging.siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/siwecosapp ${SFTP_HOST}:/home/web4cshyx/html/staging.siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/siwecosfreescan ${SFTP_HOST}:/home/web4cshyx/html/staging.siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/templates/siwecos ${SFTP_HOST}:/home/web4cshyx/html/staging.siwecos.de/templates
- language: node_js
stage: deploy-live
node_js: "8"
script:
- npm install
- gulp parse-template-scss
- gulp parse-critical-scss
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/modules/mod_accountbox ${SFTP_HOST}:/home/web4cshyx/html/siwecos.de/modules
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/sealoftrust ${SFTP_HOST}:/home/web4cshyx/html/siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/siwecosapp ${SFTP_HOST}:/home/web4cshyx/html/siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/plugins/content/siwecosfreescan ${SFTP_HOST}:/home/web4cshyx/html/siwecos.de/plugins/content
- rsync --progress -avz -e "ssh -i siwecosdeploy_rsa -o StrictHostKeyChecking=no -p 2244" ./src/templates/siwecos ${SFTP_HOST}:/home/web4cshyx/html/siwecos.de/templates
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
sudo: required