forked from ec-europa/toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.default.props
executable file
·456 lines (374 loc) · 15.9 KB
/
build.default.props
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
# Toolkit location: ./includes/phing/build/boot.props
# ------------------------------------------------------------------------------
# These are the toolkit paths that should not be altered. Altering paths here
# have a good chance of breaking things.
# ------------------------------------------------------------------------------
# Toolkit directories.
# -----------------------
toolkit.dir = ${phing.dir.core}
toolkit.dir.incl = ${toolkit.dir}/includes
toolkit.dir.incl.composer = ${toolkit.dir.incl}/composer
toolkit.dir.incl.docker = ${toolkit.dir.incl}/docker
toolkit.dir.incl.drush = ${toolkit.dir.incl}/drush
toolkit.dir.incl.git = ${toolkit.dir.incl}/git
toolkit.dir.incl.git.hooks = ${toolkit.dir.incl.git}/hooks
toolkit.dir.incl.phing = ${toolkit.dir.incl}/phing
toolkit.dir.incl.phing.build = ${toolkit.dir.incl.phing}/build
toolkit.dir.incl.phing.props = ${toolkit.dir.incl.phing}/props
toolkit.dir.incl.phing.src = ${toolkit.dir.incl.phing}/src
toolkit.dir.incl.templates = ${toolkit.dir.incl}/templates
toolkit.dir.vendor = ${toolkit.dir}/vendor
# Toolkit binaries.
# --------------------
toolkit.dir.bin = ${toolkit.dir}/bin
toolkit.dir.bin.drush = ${toolkit.dir.bin}/drush
toolkit.dir.bin.phing = ${toolkit.dir.bin}/phing
# Toolkit location: ./includes/phing/build/test/phpcs.props
# ------------------------------------------------------------------------------
# PHPCS sprecific configuration
# ------------------------------------------------------------------------------
# The file extensions to test.
# Delimited by space, comma or semicolon.
phpcs.extensions = php inc module install info test profile theme css js
# The default configuration file to generate.
phpcs.config = ${project.basedir}/phpcs.xml
# The coding standards to enforce.
# Delimited by space, comma or semicolon..
phpcs.standards = Subsite;${project.basedir}/phpcs-ruleset.xml
# Paths to check, delimited by semicolons.
phpcs.files = ${resources.dir};${lib.dir}
# Paths to ignore, delimited by semicolons.
phpcs.ignore =
# Verbosity of PHP Codesniffer. Set to 0 for standard output, 1 for progress
# report, 2 for debugging info.
phpcs.verbose = 0
# Returns a 0 error code when only warnings are found if enabled. Ment for CI.
phpcs.passwarnings = 0
# The report format. For example 'full', 'summary', 'diff', 'xml', 'json'.
# Delimited by space, comma or semicolon.
phpcs.reports = full
# Whether or not to show sniff codes in the report.
phpcs.sniffcodes = 0
# Whether or not to show the progress of the run.
phpcs.progress = 1
# Whether or not to run a coding standards check before doing a git push. Note
# that this will abort the push if the coding standards check fails.
phpcs.prepush.enable = 1
# The source and destination paths of the git pre-push hook.
phpcs.prepush.source = ${toolkit.dir.vendor}/pfrenssen/phpcs-pre-push/pre-push
phpcs.prepush.destination = ${project.basedir}/resources/git/hooks/pre-push/phpcs
# Compatibility settings.
phpcs.compat.version = 7.3
# Toolkit location: ./includes/phing/build/test/behat.props
# ------------------------------------------------------------------------------
# Behat sprecific configuration
# ------------------------------------------------------------------------------
# Browser name for selenium.
behat.browser.name = chrome
# Behat API driver.
behat.api.driver = drupal
# The location of the Behat tests.
behat.dir = ${project.basedir}/tests
# The location of the Behat executable.
behat.bin = ${behat.dir}/vendor/behat/behat/bin/behat
# The location of the Behat configuration template.
behat.yml.template = ${behat.dir}/behat.yml.dist
# The location of the generated Behat configuration file.
behat.yml.path = ${behat.dir}/behat.yml
# The base URL to use in Behat tests.
behat.base_url = ${project.url.base}
# A drush alias to run behat on.
behat.drush.alias = ${build.site}
# The URL of the Behat webdriver host.
behat.wd_host.url = http://localhost:4444/wd/hub
# The location to search for Behat subcontexts.
behat.subcontexts.path = ${build.subsite.dir}
# The output format to use for Behat tests, either 'progress' or 'pretty'.
behat.formatter.name = progress
# Enable strict mode in Behat tests. Will only pass if all tests are explicitly
# passing.
behat.options.strict = true
# Proceed the build even after error.
behat.options.haltonerror = true
# Currently only true or false possible until this is solved:
# https://github.com/drupol/phingbehattask/issues/5
behat.options.verbosity = false
# Load balancer Phing task configuration.
behat.load_balancer.containers = 2
behat.load_balancer.root = ${behat.dir}/features
behat.load_balancer.destination = ${behat.dir}/balancer
behat.load_balancer.import = ${behat.yml.path}
# Generic behat generic testing configuration
behat.generic.package.enable = 0
behat.generic.package = jonhy81/toolkit-behat
# Specify a tags for the behat scenarios to run.
behat.tags = ~@wip
behat.show_cmd =
# Toolkit location: ./includes/phing/build/test/phpunit.props
# ------------------------------------------------------------------------------
# PHPUnit sprecific configuration
# ------------------------------------------------------------------------------
# The location of the PHPUnit executable.
phpunit.bin = ${tests.dir}/bin/phpunit
# The location of the PHPUnit configuration files.
phpunit.dir = ${tests.dir}
# The location of the PHPUnit configuration template.
phpunit.xml.template = ${phpunit.dir}/phpunit.xml.dist
# The location of the generated Behat configuration file.
phpunit.xml.path = ${phpunit.dir}/phpunit.xml
# The base URL to use in PHPUnit tests.
phpunit.base_url = ${behat.base_url}
# Toolkit location: ./includes/phing/props/drone.props
# ------------------------------------------------------------------------------
# Default properties for toolkit pipeline on Drone:
# https://github.com/ec-europa/ne-pipelines/blob/master/drone/toolkit.yml
# ------------------------------------------------------------------------------
db.host = mysql
solr.host = solr
behat.wd_host.url = http://selenium:4444/wd/hub
share.path = /cache
project.db.file = ./dump.sql
project.url.base = http://web:8080
# Toolkit location: ./includes/phing/props/main.props
# ------------------------------------------------------------------------------
# Main properties of Toolkit. Most of these are build and development related.
# ------------------------------------------------------------------------------
# Binaries.
# ---------
project.bin.composer = composer.phar
project.bin.git = git
# Temporary folders and resources.
# --------------------------------
project.docroot = /var/www/html
project.tmp.devel.make = ${project.tmp.dir}/devel.make
project.tmp.dir = ${project.basedir}/.tmp
# Subsite configuration.
# ----------------------
project.id = myproject
project.install.modules = myproject_core
project.name = My Project
project.theme.default = ec_resp
project.type = subsite
project.url.base = http://web:8080
project.url.production = https://ec.europa.eu/${project.id}
# Development modules.
# --------------------
devel.mdls.dir = devel
devel.mdls.en = devel maillog stage_file_proxy
devel.mdls.dis =
# Development variables.
# ----------------------
devel.vars.error_level = 2
devel.vars.maillog_send = 0
devel.vars.preprocess_css = 0
devel.vars.preprocess_js = 0
devel.vars.stage_file_proxy_hotlink = 1
devel.vars.stage_file_proxy_origin = ${project.url.production}
devel.vars.stage_file_proxy_origin_dir = sites/${project.id}/files
devel.vars.views_show_additional_queries = 1
devel.vars.views_ui_show_performance_statistics = 1
devel.vars.views_ui_show_sql_query = 1
# Debugging configuration.
# ------------------------
drush.color = 0
drush.verbose = FALSE
drush.rr.enabled = 1
drush.rr.options = --fire-bazooka --no-cache-clear
drush.rr.disable = '', ''
drush.project.url.base = ${project.url.base}
# Docker. (TODO)
# ------------------------
docker.project.id = environment
# Database download settings.
# ---------------------------
db.dl.filename =
db.dl.filename.hash = latest.sh1
db.dl.dir = fpfis/files-for/automate_dumps
db.dl.host = webgate.ec.europa.eu
db.dl.url = ${db.dl.host}/${db.dl.dir}/${project.id}/
db.dl.username =
db.dl.password =
# Database connection settings.
# -----------------------------
db.type = mysql
db.name = ${project.id}
db.user = root
db.password =
db.host = 127.0.0.1
db.port = 3306
db.url = ${db.type}://${db.user}:${db.password}@${db.host}:${db.port}/${db.name}
db.prefix =
# Solr configuration.
# -------------------
solr.enable = 1
solr.module = apachesolr
solr.scheme = http
solr.host = 127.0.0.1
solr.port = 8983
solr.path = /solr
solr.type = d7_apachesolr
solr.url = ${solr.scheme}://${solr.host}:${solr.port}${solr.path}/${solr.type}
# Admin configuration.
# --------------------
admin.email = ${admin.username}@example.com
admin.password = pass
admin.username = admin
# Platform configuration.
# -----------------------
profile = multisite_drupal_standard
profile.name = ${profile}
profile.core = 7.x
profile.core.make = ${resources.dir}/drupal-core.make
profile.make = ${resources.dir}/${profile}.make
platform.package = deploy-package-${platform.package.reference}.tar.gz
platform.package.db.cache = 1
platform.package.db.cache.ttl = 30
platform.package.provider = git-hub
platform.package.provider.token = # TODO: Github API limit.
platform.package.repository = ec-europa/platform-dev
platform.package.download.location = https://github.com/${platform.package.repository}/releases/download/${platform.package.version.current}
platform.package.download.prerelease = false
platform.package.version = 2.5
platform.multisite.mode = 1
# Theme configuration (deploy props?)
# --------------------
theme.ecl.version = v0.18.0
theme.ec_europa.version = 0.0.6
theme.atomium.repo.url = https://github.com/ec-europa/atomium.git
theme.atomium.repo.branch = 7.x-2.x
theme.europa.repo.url = https://github.com/ec-europa/ec_europa.git
theme.europa.repo.branch = master
# Project resources.
# ------------------
lib.dir = ${project.basedir}/lib
lib.dir.libraries = ${lib.dir}/libraries
lib.dir.modules = ${lib.dir}/modules
lib.dir.modules.custom = ${lib.dir.modules}/custom
lib.dir.modules.features = ${lib.dir.modules}/features
lib.dir.profiles = ${lib.dir}/profiles
lib.dir.profiles.profile = ${lib.dir.profiles}/${profile}
lib.dir.source = ${lib.dir}/src
lib.dir.themes = ${lib.dir}/themes
lib.dir.translations = ${lib.dir}/translations
resources.dir = ${project.basedir}/resources
resources.dir.composer.json = ${resources.dir}/composer.json
resources.dir.composer.lock = ${resources.dir}/composer.lock
resources.dir.favicon.ico = ${resources.dir}/favicon.ico
resources.dir.devel.make = ${resources.dir}/devel.make
resources.dir.site.make = ${resources.dir}/site.make
resources.dir.patches = ${resources.dir}/patches
tests.dir = ${project.basedir}/tests
# Build folders.
# --------------
build.dev = build
build.dist = dist
build.site = default
# Build halts.
# ----------
build.haltonerror.dir.copy = true
build.haltonerror.props.validate = false
# Platform build resources.
# -------------------------
build.platform.dir = ${project.basedir}/${build.dev}
build.platform.dir.settings = ${build.platform.dir.sites}/default
build.platform.dir.sites = ${build.platform.dir}/sites
build.platform.dir.profile = ${build.platform.dir.profiles}/${profile}
build.platform.dir.profile.themes = ${build.platform.dir.profile}/themes
build.platform.dir.profiles = ${build.platform.dir}/profiles
build.platform.composer.json = ${build.platform.dir}/composer.json
build.platform.composer.lock = ${build.platform.dir}/composer.lock
build.platform.favicon.ico = ${build.platform.dir}/favicon.ico
build.platform.htaccess.append.text =
# Subsite build resources.
# ------------------------
build.subsite.composer.json = ${build.subsite.dir}/composer.json
build.subsite.composer.lock = ${build.subsite.dir}/composer.lock
build.subsite.dir = ${build.platform.dir.sites}/${build.site}
build.subsite.dir.files = sites/${build.site}/files
build.subsite.dir.translations = sites/${build.site}/translations
build.subsite.dir.private_files = ${build.subsite.dir.files}/private_files
build.subsite.dir.libraries = ${build.subsite.dir}/libraries
build.subsite.dir.modules = ${build.subsite.dir}/modules
build.subsite.dir.modules.contrib = ${build.subsite.dir.modules}/contrib
build.subsite.dir.modules.custom = ${build.subsite.dir.modules}/custom
build.subsite.dir.modules.features = ${build.subsite.dir.modules}/features
build.subsite.dir.source = ${build.subsite.dir}/src
build.subsite.dir.themes = ${build.subsite.dir}/themes
build.subsite.dir.tmp = sites/${build.site}/tmp
# platform build files and directories.
# -----------------------------------------
build.dist.composer.json = ${build.dist.dir}/composer.json
build.dist.composer.lock = ${build.dist.dir}/composer.lock
build.dist.dir = ${project.basedir}/${build.dist}
build.dist.dir.modules = ${build.dist.dir}/modules
build.dist.dir.modules.custom = ${build.dist.dir.modules}/custom
build.dist.dir.modules.features = ${build.dist.dir.modules}/features
build.dist.dir.profile = ${build.dist.dir.profiles}/${profile}
build.dist.dir.profiles = ${build.dist.dir}/profiles
build.dist.dir.source = ${build.dist.dir}/src
build.dist.dir.themes = ${build.dist.dir}/themes
# Temporary build files and directories.
# -----------------------------------------
build.tmp.dir = ${project.tmp.dir}/sites/${build.site}
build.tmp.dir.files = ${build.tmp.dir}/files
# Shared paths.
# -------------
share.path = /tmp
share.name = toolkit
share.path.global = ${share.path}/${share.name}
share.path.composer = ${share.path.global}/composer
share.path.platform = ${share.path.global}/platform
share.path.subsites = ${share.path.global}/subsites
share.path.composer.packages = ${share.path.composer}/packages
share.path.composer.packages.shared = ${share.path.composer.packages}/shared
share.path.platform.packages = ${share.path.platform}/packages
share.path.platform.packages.database = ${share.path.platform.packages}/database
share.path.platform.packages.deploy = ${share.path.platform.packages}/deploy
share.path.platform.packages.test = ${share.path.platform.packages}/test
share.path.subsites.packages = ${share.path.subsites}/packages
share.path.subsites.packages.database = ${share.path.subsites.packages}/database
share.path.subsites.packages.deploy = ${share.path.subsites.packages}/deploy
share.path.subsites.packages.test = ${share.path.subsites.packages}/test
# Composer hook phingcall target lists. Space separated only.
# -----------------------------------------------------------
composer.hook.post.install = build-toolkit toolkit-notifications
composer.hook.post.update =
composer.hook.pre.install =
composer.hook.pre.update =
# Flickr configuration.
# ---------------------
flickr.key = foobar
flickr.secret = bas
# Integration configuration.
# --------------------------
integration.server.port = 8888
# Varnish configuration.
# ----------------------
varnish.server.port = 8888
# Drush Context configuration.
# ----------------------------
drush.db.dump = ${build.platform.dir}/dump.sql.gz
# Drush aliases configuration.
# ----------------------------
drush.alias.default = ${build.site}
drush.alias.docker = docker
# Drupal installation settings.
# ----------------------------
drupal.update.free.access = FALSE
drupal.hash.salt =
# Drush module checks blocker flags.
# ----------------------------------
drush.toolkit-check-modules.blocker = 1
drush.authorized-security.blocker = ${drush.toolkit-check-modules.blocker}
drush.download-attribute.blocker = ${drush.toolkit-check-modules.blocker}
drush.minimum-version.blocker = ${drush.toolkit-check-modules.blocker}
drush.restricted.blocker = ${drush.toolkit-check-modules.blocker}
drush.unused.blocker = ${drush.toolkit-check-modules.blocker}
# Toolkit location: ./includes/phing/props/docker.props
# ------------------------------------------------------------------------------
# Default docker (fpfis) properties.
# ------------------------------------------------------------------------------
db.host = mysql
solr.host = solr
behat.base_url = http://web:8080
behat.wd_host.url = http://selenium:4444/wd/hub