|
86 | 86 | @echo "scripts/makefile/status-report-validation.sh file does not exist" |
87 | 87 | endif |
88 | 88 |
|
89 | | -## Validate drupal-check |
90 | | -drupalcheckval: |
91 | | - @echo "Drupal-check validation..." |
| 89 | +## Validate drupal-rector |
| 90 | +drupalrectorval: |
| 91 | +ifneq ("$(wildcard rector.yml)","") |
| 92 | + @echo "Drupal Rector validation..." |
92 | 93 | $(call php, composer install -o) |
93 | | - $(call php, vendor/bin/drupal-check -V) |
94 | | - $(call php, vendor/bin/drupal-check -ad -vv -n --no-progress web/modules/custom/) |
| 94 | + $(call php, vendor/bin/rector -V) |
| 95 | + $(call php, vendor/bin/rector process --dry-run --no-progress-bar web/modules/custom web/themes/custom) |
| 96 | +else |
| 97 | + @echo "rector.yml file does not exist" |
| 98 | +endif |
| 99 | + |
| 100 | +## Validate upgrade-status |
| 101 | +upgradestatusval: |
| 102 | +ifneq ("$(wildcard scripts/makefile/upgrade-status-validation.sh)","") |
| 103 | + @echo "Upgrade status validation..." |
| 104 | + $(call php, composer install -o) |
| 105 | + @$(call php, /bin/sh ./scripts/makefile/upgrade-status-validation.sh) |
| 106 | +else |
| 107 | + @echo "scripts/makefile/upgrade-status-validation.sh file does not exist" |
| 108 | +endif |
95 | 109 |
|
96 | 110 | ## Validate newline at the end of files |
97 | 111 | newlineeof: |
@@ -158,5 +172,5 @@ endif |
158 | 172 | sniffers: | clang compval phpcs newlineeof |
159 | 173 |
|
160 | 174 | ## Run all tests & validations (including sniffers) |
161 | | -tests: | sniffers cinsp drupalcheckval behat watchdogval statusreportval |
| 175 | +tests: | sniffers cinsp drupalrectorval upgradestatusval behat watchdogval statusreportval |
162 | 176 |
|
0 commit comments