-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
108 lines (100 loc) · 2.68 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
# 8.1 pipeline
name: dotted 8.1 pipeline
kind: pipeline
type: docker
globals:
- &docker_credentiels
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: fnayou/dotted
purge: true
- &commands
commands:
- composer validate
- composer install --no-scripts --no-interaction --ansi
- ./vendor/bin/php-cs-fixer fix --dry-run --diff --ansi --using-cache=no --allow-risky=yes
- ./vendor/bin/phpunit
- ./vendor/bin/phpstan analyse --ansi
steps:
- name: build
image: plugins/docker
settings:
storage_driver: vfs
dockerfile: docker/php/Dockerfile.81
<<: *docker_credentiels
tags: ${DRONE_COMMIT_SHA:0:7}-${DRONE_COMMIT_BRANCH}-81
when:
branch:
exclude:
- master
event:
- push
- pull_request
- name: quality
image: fnayou/dotted:${DRONE_COMMIT_SHA:0:7}-${DRONE_COMMIT_BRANCH}-81
<<: *commands
when:
branch:
exclude:
- master
event:
- push
- pull_request
volumes:
- name: docker-cache
host:
path: /var/cache/${DRONE_REPO_NAME}/docker
image_pull_secrets:
- dockerconfigjson
---
# 7.4 pipeline
name: dotted 7.4 pipeline
kind: pipeline
type: docker
globals:
- &docker_credentiels
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: fnayou/dotted
purge: true
- &commands
commands:
- composer validate
- composer install --no-scripts --no-interaction --ansi
- ./vendor/bin/phpunit
steps:
- name: build
image: plugins/docker
settings:
storage_driver: vfs
dockerfile: docker/php/Dockerfile.74
<<: *docker_credentiels
tags: ${DRONE_COMMIT_SHA:0:7}-${DRONE_COMMIT_BRANCH}-74
when:
branch:
exclude:
- master
event:
- push
- pull_request
- name: quality
image: fnayou/dotted:${DRONE_COMMIT_SHA:0:7}-${DRONE_COMMIT_BRANCH}-74
<<: *commands
when:
branch:
exclude:
- master
event:
- push
- pull_request
volumes:
- name: docker-cache
host:
path: /var/cache/${DRONE_REPO_NAME}/docker
image_pull_secrets:
- dockerconfigjson