Created
May 5, 2015 23:01
-
-
Save ktoso/4f101980204b2a7a32c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validatePullRequest := Def.taskDyn { | |
val log = streams.value.log | |
val theVoid = Def.task { () } | |
if (projectIsAffectedByChanges.value) { | |
log.info(s"Changes in PR are affecting project [${name.value}] - proceeding with test:test") | |
theVoid.dependsOn(test in Test) | |
} else { | |
log.debug(s"Skipping validation of [${name.value}], as PR does NOT affect this project...") | |
theVoid | |
} | |
}.value, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment