-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
67 lines (57 loc) · 1.53 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
---
kind: pipeline
name: default
clone:
steps:
- name: composer
image: joomlaprojects/docker-images:php8.2
volumes:
- name: composer-cache
path: /tmp/composer-cache
commands:
- composer validate --no-check-all --strict
- composer install --no-progress --no-suggest
- name: phpcs
image: joomlaprojects/docker-images:php8.1
depends_on: [ composer ]
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: clone-test-data
image: alpine/git
commands:
- mkdir test-cms
- cd test-cms
- git clone https://github.com/joomla/joomla-cms.git .
- name: composer-test
image: joomlaprojects/docker-images:php8.2
depends_on: [ clone-test-data ]
volumes:
- name: composer-cache
path: /tmp/composer-cache
commands:
- cd test-cms
- composer install --no-progress --no-suggest --no-dev
- mv libraries ../libraries
- name: phpstan
image: joomlaprojects/docker-images:php8.1
depends_on: [ composer-test ]
failure: ignore
commands:
- vendor/bin/phpstan
- name: phan
image: joomlaprojects/docker-images:php8.1-ast
depends_on: [ composer-test ]
failure: ignore
commands:
- vendor/bin/phan
volumes:
- name: composer-cache
host:
path: /tmp/composer-cache
---
kind: signature
hmac: 974d8bbab63476ada85fd247023bc7405b06565db23694674e7601df088c6e91
...