Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pack/jvm/java/pushTests"

Index

Variables

Const FileToWatch

FileToWatch: string[] = ["java", "html", "json", "yml", "yaml", "xml", "sh", "kt", "properties"]

Const IsJava

IsJava: PushTest = predicatePushTest("Is Java", async p =>projectUtils.fileExists(p, "**/*.java", () => true),)

Const MaterialChangeToJavaRepo

MaterialChangeToJavaRepo: PushTest = pushTest("Material change to Java repo", async pci => {const changedFiles = await filesChangedSince(pci.project, pci.push);if (!changedFiles) {logger.info("Cannot determine if change is material on %j: can't enumerate changed files", pci.id);return true;}logger.debug(`MaterialChangeToJavaRepo: Changed files are [${changedFiles.join(",")}]`);if (anyFileChangedWithExtension(changedFiles, FileToWatch)) {logger.debug("Change is material on %j: changed files=[%s]", pci.id, changedFiles.join(","));return true;}logger.debug("Change is immaterial on %j: changed files=[%s]", pci.id, changedFiles.join(","));return false;})

Veto if change to deployment unit doesn't seem important enough to build and deploy

Generated using TypeDoc