You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. sonar {
  2. properties {
  3. property 'sonar.projectName', "${projectTitle} :: Web :: Design System"
  4. property "sonar.sources", "src"
  5. property "sonar.exclusions", "src/**/__tests__/**,src/types/**,src/@types/**,src/helpers/testUtils.tsx"
  6. property "sonar.tests", "src"
  7. property "sonar.test.inclusions", "src/**/__tests__/**"
  8. property "sonar.javascript.lcov.reportPaths", "./coverage/lcov.info"
  9. }
  10. }
  11. task "yarn_validate-ci"(type: Exec) {
  12. dependsOn ":server:sonar-web:yarn_design-system"
  13. inputs.dir('src')
  14. ['package.json', '../yarn.lock', 'jest.config.js'].each {
  15. inputs.file(it).withPathSensitivity(PathSensitivity.RELATIVE)
  16. }
  17. outputs.dir('coverage')
  18. outputs.cacheIf { true }
  19. commandLine osAdaptiveCommand(['npm', 'run', 'validate-ci'])
  20. }
  21. task "yarn_lint-report-ci"(type: Exec) {
  22. dependsOn ":server:sonar-web:yarn_design-system"
  23. ['src'].each {
  24. inputs.dir(it)
  25. }
  26. ['package.json', '../yarn.lock', 'tsconfig.json', '.eslintrc'].each {
  27. inputs.file(it)
  28. }
  29. outputs.dir('eslint-report')
  30. outputs.cacheIf { true }
  31. commandLine osAdaptiveCommand(['npm', 'run', 'lint-report-ci'])
  32. }