-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.properties.dist
277 lines (199 loc) · 9.08 KB
/
build.properties.dist
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
# Drupal configuration
# --------------------
# The install profile to use.
platform.profile.name = multisite_drupal_standard
# The site name.
platform.site.name = European Commission
# The default theme to enable, set to either "ec_europa" or "ec_resp".
platform.site.theme_default = ec_resp
# The default Europa Component Library release
ecl.version = 0.21.0
# The default EC Europa theme release
ec_europa.version = 0.0.14
# The default Atomium and Europa theme build properties.
# Used only if default theme is set to "ec_europa".
platform.theme.atomium.repo.url = https://github.com/ec-europa/atomium.git
platform.theme.atomium.repo.branch = 7.x-2.x
platform.theme.europa.repo.url = https://github.com/ec-europa/ec_europa.git
platform.theme.europa.repo.branch = master
# The Drupal core make file.
drupal.make = ${platform.resources.dir}/drupal-core.make
# Database settings.
drupal.db.type = mysql
drupal.db.name = db_name
drupal.db.user = db_user
drupal.db.password = db_pass
drupal.db.host = 127.0.0.1
drupal.db.port = 3306
drupal.db.url = ${drupal.db.type}://${drupal.db.user}:${drupal.db.password}@${drupal.db.host}:${drupal.db.port}/${drupal.db.name}
# Admin user.
drupal.admin.username = admin
drupal.admin.password = pass
drupal.admin.email = [email protected]
# The location of the .htaccess file in the Drupal root folder.
drupal.htaccess.path = ${platform.build.dir}/.htaccess
# Configuration to append to the .htaccess file in the Drupal root folder.
drupal.htaccess.append.text =
# Configuration to append to the settings.php file of the build.
drupal.settings.append.text = ${line.separator}$conf['field_sql_storage_skip_writing_unchanged_fields'] = FALSE;${line.separator}$conf['multisite_toolbox_cs_whitelist'] = array('*.europa.eu', 'europa.eu');${line.separator}$conf['poetry_mock_base_url'] = "${mock.poetry.base_url}";${line.separator}$conf['ecas_whitelisted_user_roles'] = array();${line.separator}
drupal.settings.append.poetry = ${line.separator}$conf['poetry_service'] = array('address' => '${poetry_service.address}', 'method' => '${poetry_service.method}', 'callback_address' => '${poetry_service.callback_address}');${line.separator}
# Platform configuration
# ----------------------
# The root directory of our platform, in order to be able to override it when
# building from a subsite.
platform.basedir = ${project.basedir}
# The make file for the platform.
platform.make = ${platform.resources.dir}/${platform.profile.name}.make
# Paths
# -----
# Paths to executables.
platform.bin = ${project.basedir}/bin
phing.bin = ${project.basedir}/bin/phing
drush.bin = ${project.basedir}/bin/drush
composer.bin = composer.phar
phantomjs.bin = ${project.basedir}/bin/phantomjs
# The build location
phing.project.build.dir = build
# Temporary folder.
phing.project.tmp.dir = tmp
# Build locations.
platform.build.dir = ${project.basedir}/${phing.project.build.dir}
# Local resources
platform.resources.dir = ${platform.basedir}/resources
platform.resources.profiles.dir = ${platform.basedir}/profiles
platform.resources.profiles.common.themes.dir = ${platform.basedir}/profiles/common/themes
platform.resources.profile.dir = ${platform.resources.profiles.dir}/${platform.profile.name}
platform.resources.composer.json = ${platform.resources.dir}/composer.json
platform.resources.composer.lock = ${platform.resources.dir}/composer.lock
platform.resources.favicon.ico = ${platform.resources.dir}/favicon.ico
platform.resources.source.dir = ${platform.basedir}/src
# Files and directories inside the Drupal installation.
platform.build.sites.dir = ${platform.build.dir}/sites
platform.build.site.dir = ${platform.build.sites.dir}/${platform.build.site.name}
platform.build.settings.dir = ${platform.build.sites.dir}/default
platform.build.files.dir = ${platform.build.settings.dir}/files
platform.build.profiles.dir = ${platform.build.dir}/profiles
platform.build.profile.dir = ${platform.build.profiles.dir}/${platform.profile.name}
platform.build.composer.json = ${platform.build.dir}/composer.json
platform.build.composer.lock = ${platform.build.dir}/composer.lock
platform.build.favicon.ico = ${platform.build.dir}/favicon.ico
# Git resources.
phing.project.git.dir = ${project.basedir}/.git
phing.project.git.githooks.dir = ${phing.project.git.dir}/hooks
platform.resources.githooks.dir = ${platform.resources.dir}/git-hooks
# Behat configuration
# -------------------
# The location of the Behat executable.
behat.bin = ${project.basedir}/bin/behat
# The location of the Behat tests.
behat.dir = ${project.basedir}/tests
# 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 location of the screenshots that are generated when tests fail.
behat.screenshots.path = /tmp
# The base URL to use in Behat tests.
behat.base_url = http://localhost
# The URL of the Behat webdriver host.
behat.wd_host.url = http://localhost:8643/wd/hub
# The browser to use for javascript testing.
behat.browser.name = chrome
# The location to search for Behat subcontexts.
behat.subcontexts.path = ${platform.build.profiles.dir}/common/modules
# The output format to use for Behat tests, either 'progress' or 'pretty'.
behat.formatter.name = pretty
# Enable strict mode in Behat tests. Will only pass if all tests are explicitly
# passing.
behat.options.strict = true
# Set verbosity for Behat tests. 0 is completely silent, 1 is normal output, 2
# shows exception backtraces, 3 shows debugging information.
behat.options.verbosity = 2
# Load balancer Phing task configuration.
behat.load_balancer.containers = 4
behat.load_balancer.root = ${behat.dir}
behat.load_balancer.destination = ${behat.dir}/balancer
behat.load_balancer.import = ${behat.yml.path}
# Poetry extension
behat.poetry.host = localhost
behat.poetry.port = 28080
behat.poetry.endpoint = /service
behat.poetry.wsdl = /wsdl
behat.poetry.username = username
behat.poetry.password = password
# Solr mock
behat.solr.host = localhost
behat.solr.port = 8983
# Poetry mock
# Example mock.poetry.base_url = http://127.0.0.1:8080/platform-dev/build
# Example mock.poetry.base_url = http://web:8080
mock.poetry.base_url =
# Example mock.poetry.address = http://web:8080/tmgmt_poetry_mock/tmgmt_poetry_mock.wsdl
poetry_service.address =
# Example mock.poetry.method = requestService
poetry_service.method =
# Example mock.poetry.callback_address = http://web:8080
poetry_service.callback_address =
# PHPUnit configuration
# -------------------
# The location of the PHPUnit executable.
phpunit.bin = ${project.basedir}/bin/phpunit
# The location of the PHPUnit configuration files.
phpunit.dir = ${project.basedir}/tests
# 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}
# PHP CodeSniffer configuration
# -----------------------------
# The file extensions to test.
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 default path of qa-automation.
phpcs.qa_automation.path = ${project.basedir}/vendor/ec-europa/qa-automation
# The locations for installed standards, delimited by spaces, commas or semicolons.
phpcs.installed.paths = ${phpcs.qa_automation.path}/phpcs/SubStandards
# The coding standards to use, delimited by spaces, commas or semicolons.
phpcs.standards = Platform;${project.basedir}/phpcs-ruleset.xml
# Returns a 0 error code when only warnings are found if enabled. Meant for CI.
# Set to 1 for ignoring warnings, 0 for showing warnings.
phpcs.ignore.warnings = 0
# Paths to check, delimited by spaces, commas or semicolons.
phpcs.files = ${platform.resources.profiles.dir};${platform.resources.source.dir};${behat.dir};
# Paths to ignore, delimited by semicolons.
phpcs.ignore =
# The report format. For example 'full', 'summary', 'diff', 'xml', 'json'.
phpcs.report = 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
# The location of the file containing the global configuration options.
phpcs.global.config = ${project.basedir}/vendor/squizlabs/php_codesniffer/CodeSniffer.conf
# Host configuration
# ------------------
server.docroot = /var/www
# Drone configuration
# ------------------
webserver.user = www-data.www-data
# Debugging
# ---------
# Verbosity of drush commands. Set to TRUE to be verbose.
drush.verbose = FALSE
# Verbosity of PHP Codesniffer. Set to 1 for progress report, 2 for debugging info.
phpcs.verbose = 0
# Flickr configuration
# --------------------
# A valid API key & secret used by the behat tests
flickr.key = foobar
flickr.secret = bas
# Varnish configuration
# -------------------------
# Port on which the mocked Varnish server used by the behat tests will listen.
varnish.server.port = 8888
# Drush Context configuration
# ---------------------------
drush.db.dump = ${platform.build.dir}/dump.sql