Skip to content

Commit

Permalink
fallback to .appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joaope committed Sep 25, 2016
1 parent f7fb8d2 commit 9915ec8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/LocalAppVeyor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,15 @@ private static BuildConfiguration TryGetBuildConfigurationOrTerminate(string rep

if (!File.Exists(appVeyorYml))
{
PipelineOutputter.WriteError("AppVeyor.yml file not found on repository path. Build aborted.");
Environment.Exit(1);
PipelineOutputter.WriteError("AppVeyor.yml file not found on repository path. Trying '.appveyor.yml'...");

appVeyorYml = Path.Combine(repositoryPath, ".appveyor.yml");

if (!File.Exists(appVeyorYml))
{
PipelineOutputter.WriteError("AppVeyor.yml file not found on repository path. Build aborted.");
Environment.Exit(1);
}
}

BuildConfiguration configuration = null;
Expand All @@ -142,7 +149,6 @@ private static BuildConfiguration TryGetBuildConfigurationOrTerminate(string rep

private static EngineConfiguration TryGetEngineConfigurationOrTerminate(string repositoryPath)
{
// Try infer repository path if one is not provided
if (!string.IsNullOrEmpty(repositoryPath))
{
if (!Directory.Exists(repositoryPath))
Expand Down

0 comments on commit 9915ec8

Please sign in to comment.