Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Contrib maintainers now have the functionality to customise the testing process on drupal.org. See
#2952984: Add example drupalci.yml file to un-suppress deprecations
#2949257: Document how to use drupalci.yml in a project
Customizing DrupalCI testing for projects
The file drupalci.yml
contains the configuration for this.
Comment | File | Size | Author |
---|
Comments
Comment #2
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThis contains a bit of guess-work.
Comment #3
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedUse
$PROJECT_DIR
not$SOURCE_DIR
this time.Comment #6
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #7
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThe default drupalci config (and the default behaviour before I added drupalci.yml) attempts to run every type of test. In particular we have:
Then we get console error messages such as:
and
As we do not have javascript tests it is cleaner to remove these attempts from drupalci.yml
Comment #9
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedYes! Now we do not get the errors in Jenkins console saying 'No valid tests were specified'
Calling this fixed now. There are lots of other things we can do with drupalci.yml and they can be on other issues.
Comment #10
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedFor the record, to temporarily limit the Scheduler phpunit tests on D.O. to a single test class, the following line can be added:
where NameOfTest is the test class. Note that the full path is case-sensitive.
Comment #12
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #13
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedSetting to active to allow tests to be run.
Comment #14
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #15
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #16
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #17
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #18
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedComment #19
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedIgnore the above patches. Using this issue for D9 drupalci.yml patch testing.