generated from alleyinteractive/create-wordpress-plugin
-
Notifications
You must be signed in to change notification settings - Fork 3
/
buddy.yml
107 lines (107 loc) · 3.22 KB
/
buddy.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
- pipeline: "Pull Request Tests"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "refs/pull/*"
ref_type: "WILDCARD"
priority: "NORMAL"
target_site_url: "https://github.com/autoblogging-proo/autoblogging-pro"
fetch_all_refs: true
fail_on_prepare_env_warning: true
trigger_condition: "ALWAYS"
actions:
- action: "Gitignored files check"
type: "BUILD"
working_directory: "/buddy/autoblogging-pro"
docker_image_name: "alleyops/ci-resources"
docker_image_tag: "8.0-fpm-wp"
execute_commands:
- "if [[ ! -z $(git ls-files -i --exclude-standard) ]]; then exit 1; fi"
volume_mappings:
- "/:/buddy/autoblogging-pro"
trigger_condition: "ALWAYS"
shell: "BASH"
run_next_parallel: true
- action: "Check for git conflicts"
type: "BUILD"
working_directory: "/buddy/autoblogging-pro"
docker_image_name: "alleyops/ci-resources"
docker_image_tag: "8.0-fpm-wp"
execute_commands:
- "! git grep -E '<<<<<<< |>>>>>>> ' -- './*' ':(exclude)buddy.yml' ':(exclude).buddy/*'"
volume_mappings:
- "/:/buddy/autoblogging-pro"
trigger_condition: "ALWAYS"
shell: "BASH"
- action: "Composer install"
type: "BUILD"
working_directory: "/buddy/autoblogging-pro"
docker_image_name: "alleyops/ci-resources"
docker_image_tag: "8.0-fpm-wp"
execute_commands:
- "composer install -q"
volume_mappings:
- "/:/buddy/autoblogging-pro"
trigger_condition: "ALWAYS"
shell: "BASH"
- action: "phpunit"
type: "BUILD"
working_directory: "/buddy/autoblogging-pro"
docker_image_name: "alleyops/ci-resources"
docker_image_tag: "8.0-fpm-wp"
execute_commands:
- "composer phpunit"
setup_commands:
- "echo \"extension=memcache.so\" >> /usr/local/etc/php/conf.d/buddy.ini"
services:
- type: "MARIADB"
version: "10.3"
connection:
host: "mariadb"
port: 3306
user: "root"
password: "root"
db: "wordpress_unit_tests"
- type: "MEMCACHED"
version: "1.5.6"
connection:
host: "memcached"
port: 11211
volume_mappings:
- "/:/buddy/autoblogging-pro"
trigger_condition: "ALWAYS"
shell: "BASH"
run_next_parallel: true
- action: "composer phpcs"
type: "BUILD"
working_directory: "/buddy/autoblogging-pro"
docker_image_name: "alleyops/ci-resources"
docker_image_tag: "8.0-fpm-wp"
execute_commands:
- "composer phpcs"
volume_mappings:
- "/:/buddy/autoblogging-pro"
trigger_condition: "ALWAYS"
shell: "BASH"
variables:
- key: "CACHEDIR"
value: "/tmp/test-cache"
type: "VAR"
description: "Cache folder for remote requests."
- key: "SKIP_DISCOVERY"
value: "true"
type: "VAR"
- key: "WP_CORE_DIR"
value: "/tmp/wordpress"
type: "VAR"
description: "WordPress checkout folder."
- key: "WP_VERSION"
value: "latest"
type: "VAR"
- key: "WP_DB_PASSWORD"
value: "root"
type: "VAR"
- key: "WP_DB_HOST"
value: "mariadb"
type: "VAR"
- key: "WP_SKIP_DB_CREATE"
value: "true"
type: "VAR"