-
Notifications
You must be signed in to change notification settings - Fork 29
/
.drone.yml
93 lines (82 loc) · 1.92 KB
/
.drone.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
kind: pipeline
name: default
clone:
steps:
- name: composer
image: joomlaprojects/docker-images:php8.1
commands:
- php -v
- composer update
- composer require phpmd/phpmd phpstan/phpstan
volumes:
- name: composer-cache
path: /tmp/composer-cache
- name: phpcs
image: joomlaprojects/docker-images:php8.1
depends_on:
- composer
commands:
- vendor/bin/phpcs -p --report=full --extensions=php --standard=ruleset.xml src/ bin/ www/
- name: phpmd
image: joomlaprojects/docker-images:php8.1
depends_on:
- composer
commands:
- vendor/bin/phpmd src text cleancode
- vendor/bin/phpmd src text codesize
- vendor/bin/phpmd src text controversial
- vendor/bin/phpmd src text design
- vendor/bin/phpmd src text unusedcode
failure: ignore
- name: phpstan
image: joomlaprojects/docker-images:php8.1
depends_on:
- composer
commands:
- vendor/bin/phpstan analyse src
failure: ignore
- name: phploc
image: joomlaprojects/docker-images:php8.1
depends_on:
- composer
commands:
- phploc src
failure: ignore
- name: phpcpd
image: joomlaprojects/docker-images:php8.1
depends_on:
- composer
commands:
- phpcpd src
failure: ignore
- name: deployment
image: appleboy/drone-ssh
depends_on:
- phpcs
settings:
host:
from_secret: framework_host
username:
from_secret: framework_username
password:
from_secret: framework_password
port: 22
script:
- cd /home/fwjoomla/siteData
- bin/framework update:server
when:
branch:
- master
status:
- success
event:
- push
volumes:
- name: composer-cache
host:
path: /tmp/composer-cache
---
kind: signature
hmac: 3976132d114c361d6cd7b0429b51b729adcea4f1065ccba4e589889cad94ae12
...