-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
52 lines (46 loc) · 1.11 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
---
kind: pipeline
name: generate-schema
steps:
- name: setupphp81
image: docker
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- docker build --rm -t snowcookie/generate-schema-php81 ./docker/php81
- name: testphp81
image: snowcookie/generate-schema-php81:latest
pull: if-not-exists
volumes:
- name: vendorphp81
path: /drone/src/vendor
commands:
- composer install
- vendor/bin/phpunit --testsuite "Package Test Suite" --testdox
depends_on:
- setupphp81
services:
- name: snowcookie-generate-schema-mysql
image: mysql:8
pull: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
command: [ "--default-authentication-plugin=mysql_native_password" ]
- name: snowcookie-generate-schema-postgres
image: postgres:15
pull: always
environment:
POSTGRES_DB: homestead
POSTGRES_PASSWORD: secret
POSTGRES_USER: homestead
volumes:
- name: docker
host:
path: /var/run/docker.sock
- name: vendorphp81
host:
path: /home/snowcookie/drone/${DRONE_REPO_NAME}/php81/vendor