You are here

drupalci.yml in Automatic Updates 8.2

Same filename and directory in other branches
  1. 8 drupalci.yml

File

drupalci.yml
View source
  1. # https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
  2. # Copied from https://git.drupalcode.org/project/ckeditor5/-/blob/c68be57fbc2c29969e9726ec932af3f0e80c3dd9/drupalci.yml
  3. # cspell:disable
  4. build:
  5. assessment:
  6. # validate_codebase:
  7. # automatic_updates code quality checking matches that of Drupal core: it is checked by container_command.commit_checks.
  8. testing:
  9. # Run code quality checks.
  10. container_command.commit-checks:
  11. commands:
  12. # Copy core's checking script into this contrib module.
  13. - "cp /var/www/html/core/scripts/dev/commit-code-check.sh modules/contrib/automatic_updates/"
  14. # Comply with core's checking script file permissions expectations.
  15. - chmod 644 modules/contrib/automatic_updates/
  16. # Rewrite $TOP_LEVEL/core since $TOP_LEVEL now refers to the contrib module.
  17. - sed -i "s/\$TOP_LEVEL\/core/\/var\/www\/html\/core/" modules/contrib/automatic_updates/commit-code-check.sh
  18. # Ensure the remainder of the script runs from the script's directory and not the current working directory.
  19. - sed -i "s/# Gets list of files to check./cd \"\$\(dirname \"\$0\"\)\";/" modules/contrib/automatic_updates/commit-code-check.sh
  20. # When constructing $FILES, ignore the `commit-code-check.sh` file we just copied.
  21. - sed -i "s/--exclude=vendor/--exclude=vendor --exclude=commit-code-check.sh/" modules/contrib/automatic_updates/commit-code-check.sh
  22. # vendor/bin/phpcs now needs to be prefixed. And $TOP_LEVEL/vendor needs to be rewritten.
  23. - sed -i "s/vendor\/bin\/phpcs/\/var\/www\/html\/vendor\/bin\/phpcs/" modules/contrib/automatic_updates/commit-code-check.sh
  24. - sed -i "s/\$TOP_LEVEL\/vendor/\/var\/www\/html\/vendor/" modules/contrib/automatic_updates/commit-code-check.sh
  25. # Disable all JS compile checks until we've matched core's build process.
  26. # @todo Remove this in https://www.drupal.org/project/automatic_updates/issues/3221082.
  27. - sed -i "s/COMPILE_CHECK=1/COMPILE_CHECK=0/" modules/contrib/automatic_updates/commit-code-check.sh
  28. - sed -i "s/core\/scripts\/js/js/" modules/contrib/automatic_updates/commit-code-check.sh
  29. # Uncomment to Check all files
  30. #- sed -i "s/git diff --name-only HEAD~1 HEAD/find \* -type f -not -path \"\.\/\.git\*\"/" modules/contrib/automatic_updates/commit-code-check.sh
  31. # Add our words to the dictionary
  32. - sed -i "s/abiword/updater's/" core/misc/cspell/dictionary.txt
  33. - sed -i "s/absolutezero/stager's/" core/misc/cspell/dictionary.txt
  34. - sed -i "s/adamson/STACKLIMIT/" core/misc/cspell/dictionary.txt
  35. # After all of the shenanigans above, we're finally ready to run core's `commit-code-check.sh`! :)
  36. - "modules/contrib/automatic_updates/commit-code-check.sh --drupalci"
  37. # Restore the original permissions.
  38. - chmod 777 modules/contrib/automatic_updates/
  39. # Disable the PCRE engine's JIT, since it causes Composer to die during the
  40. # update process, but only on Drupal CI, and for reasons that are essentially
  41. # impossible to trace into. The PCRE JIT is not necessary for Automatic Updates
  42. # to work correctly, and disabling it is a known workaround.
  43. # @see pcre.ini
  44. - sudo cp modules/contrib/automatic_updates/pcre.ini /usr/local/etc/php/conf.d
  45. halt-on-fail: true
  46. # run_tests task is executed several times in order of performance speeds.
  47. # halt-on-fail can be set on the run_tests tasks in order to fail fast.
  48. # suppress-deprecations is false in order to be alerted to usages of
  49. # deprecated code.
  50. run_tests.phpunit:
  51. types: 'PHPUnit-Unit'
  52. testgroups: '--all'
  53. suppress-deprecations: false
  54. halt-on-fail: false
  55. run_tests.kernel:
  56. types: 'PHPUnit-Kernel'
  57. testgroups: '--all'
  58. suppress-deprecations: false
  59. halt-on-fail: false
  60. run_tests.build:
  61. # Limit concurrency due to disk space concerns.
  62. concurrency: 15
  63. types: 'PHPUnit-Build'
  64. testgroups: '--all'
  65. suppress-deprecations: false
  66. halt-on-fail: false
  67. run_tests.functional:
  68. types: 'PHPUnit-Functional'
  69. testgroups: '--all'
  70. suppress-deprecations: false
  71. halt-on-fail: false
  72. # Functional JavaScript tests require a concurrency of 1 because there is
  73. # only one instance of PhantomJS on the testbot machine.
  74. #run_tests.javascript:
  75. # concurrency: 1
  76. # types: 'PHPUnit-FunctionalJavascript'
  77. # testgroups: '--all'
  78. # suppress-deprecations: false
  79. # halt-on-fail: false