forked from dongilbert/jstats-server
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.drone.yml
73 lines (65 loc) · 1.5 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
---
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
- name: phpcs
image: joomlaprojects/docker-images:php8.1
depends_on: [ composer ]
commands:
- echo $(date)
- ./vendor/bin/phpcs --config-set installed_paths vendor/joomla/coding-standards
- ./vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .
- echo $(date)
- name: php81
depends_on: [ phpcs ]
image: joomlaprojects/docker-images:php8.1
commands:
- php -v
- ./vendor/bin/phpunit
- name: deployment
image: appleboy/drone-ssh
depends_on:
- php81
settings:
host:
from_secret: stats_host
username:
from_secret: stats_username
port: 22
key:
from_secret: stats_key
script:
- cd /home/devj/jstats-server
- bin/stats update:server
- chmod 644 www/index.php
when:
branch:
- master
status:
- success
event:
- push
volumes:
- name: composer-cache
host:
path: /tmp/composer-cache
services:
- name: mysql
image: mysql:5.7
environment:
MYSQL_USER: joomla_ut
MYSQL_PASSWORD: joomla_ut
MYSQL_ROOT_PASSWORD: joomla_ut
MYSQL_DATABASE: test_joomla
---
kind: signature
hmac: 8be22045dcdba2900053efa460a017b12d49fa4b0e52f759424c359a503e13cf
...