Look for projects under a subdirectory in test and samples

This commit is contained in:
Pranav K 2016-03-23 11:46:16 -07:00
parent 7f1f8340d5
commit 74787d2ce6
1 changed files with 13 additions and 1 deletions

View File

@ -151,7 +151,7 @@ var buildTarget = "compile"
foreach (var batch in batchedRepos)
{
Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = IsLinux ? 1 : 4 }, repo =>
Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = 4 }, repo =>
{
var blockName = string.Format("Building {0}", repo);
@ -997,6 +997,18 @@ functions
{
GetDependencies(projectJson, info.DependencyNames);
}
else
{
// Look for test\Websites\WebsiteName\project.json
foreach (var subDirectory in Directory.EnumerateDirectories(directory))
{
projectJson = Path.Combine(subDirectory, "project.json");
if (File.Exists(projectJson))
{
GetDependencies(projectJson, info.DependencyNames);
}
}
}
}
}
}