-
Notifications
You must be signed in to change notification settings - Fork 81
/
.drone.yml
82 lines (72 loc) · 1.75 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
---
kind: pipeline
name: default
clone:
steps:
- name: composer
image: joomlaprojects/docker-images:php8.1
volumes:
- name: composer-cache
path: /tmp/composer-cache
commands:
- composer install --no-progress --no-suggest --ignore-platform-req=ext-intl
- name: phpcs
image: joomlaprojects/docker-images:php8.1
depends_on: [ composer ]
failure: ignore
commands:
- echo $(date)
- ./vendor/bin/php-cs-fixer fix -vvv --dry-run --diff
- ./vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .
- echo $(date)
- name: phpstan
image: joomlaprojects/docker-images:php8.1
failure: ignore
depends_on: [ composer ]
commands:
- echo $(date)
- ./vendor/bin/phpstan analyse src tests
- echo $(date)
- name: php81
depends_on: [ phpcs ]
failure: ignore
image: joomlaprojects/docker-images:php8.1
commands:
- php -v
- ./vendor/bin/phpunit --configuration=phpunit.xml
- name: php82
depends_on: [ phpcs ]
failure: ignore
image: joomlaprojects/docker-images:php8.2
commands:
- php -v
- ./vendor/bin/phpunit --configuration=phpunit.xml
- name: deployment
image: appleboy/drone-ssh
depends_on:
- php81
settings:
host:
from_secret: jissues_host
username:
from_secret: jissues_username
port: 22
key:
from_secret: jissues_key
script:
- bin/jtracker update:server --log=cron.log
when:
branch:
- master
status:
- success
event:
- push
volumes:
- name: composer-cache
host:
path: /tmp/composer-cache
---
kind: signature
hmac: 59007ec8408b9665b23c6160cac1b13045cbecd68c8305d7d7ea97b6ea2332b2
...