1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

GITHUB-230: Fail build if invalid project requested.

Fixes https://github.com/cbeust/kobalt/issues/230
This commit is contained in:
Cedric Beust 2016-06-06 22:08:30 -08:00
parent 5b2ed94655
commit ff1e3c2d13
3 changed files with 58 additions and 21 deletions

View file

@ -80,7 +80,7 @@ class TaskManagerTest @Inject constructor(val taskManager: TaskManager) {
}
}
val graph = taskManager.createGraph2("", tasks, dependencies,
val graph = taskManager.createGraph2("", tasks.map { TaskManager.TaskInfo(it) }, dependencies,
dependsOn, reverseDependsOn, runBefore, runAfter, alwaysRunAfter,
{ it }, { t -> true })
val result = DryRunGraphExecutor(graph).run()