-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdrupalci.yml
45 lines (45 loc) · 2.07 KB
/
drupalci.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
# See docs at https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing-for-projects
build:
assessment:
validate_codebase:
phplint:
container_composer:
container_command:
commands:
host_command:
commands:
# Apply patch from https://www.drupal.org/project/drupalci_testbot/issues/3251817
# @todo Remove this when Drupal 9.4.9 and 9.5.0 and 10.0.0 have been released.
- "cd ${SOURCE_DIR} && sudo -u www-data curl https://www.drupal.org/files/issues/2021-11-30/3251817-4.run-tests-with-multiple-groups.patch | sudo -u www-data patch -p1 --verbose"
csslint:
eslint:
phpcs:
phpstan:
halt-on-fail: false
testing:
container_command:
commands:
# Rule 3.0-alpha7 is not compatible with PHP8.1 but the dev version has been fixed.
# Added mglaman/phpstan-drupal:* to allow downgrade. See https://www.drupal.org/i/3326114
- "cd ${SOURCE_DIR} && sudo -u www-data composer require drupal/rules:3.x-dev mglaman/phpstan-drupal:*"
# Get workbench moderation modules when testing with Drupal 9.
# Use * because only the dev version of WBMA is compatible with D9.
- 'drush core:status | awk "NR==1{print \$2\$3\$4}"'
- 'drush core:status | awk "NR==1{print \$2\$3\$4}" | grep version:9 && sudo -u www-data composer require drupal/workbench_moderation drupal/workbench_moderation_actions:*'
# Show the eslint version
- "${SOURCE_DIR}/core/node_modules/.bin/eslint --version"
run_tests.functional:
types: 'PHPUnit-Functional'
testgroups: '--all'
# The groups are 'scheduler,scheduler_api,scheduler_rules_integration'
suppress-deprecations: false
run_tests.kernel:
types: 'PHPUnit-Kernel'
testgroups: 'scheduler_kernel'
suppress-deprecations: false
run_tests.js:
types: 'PHPUnit-FunctionalJavascript'
testgroups: 'scheduler_js'
suppress-deprecations: false
concurrency: 1
halt-on-fail: false