Skip to content

Commit 86aab0f

Browse files
committed
Use dynamic repos on travis
1 parent 65a4b34 commit 86aab0f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

build.cake

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,26 @@ Task("Version")
5757
.IsDependentOn("DogfoodBuild")
5858
.Does(() =>
5959
{
60+
string url = null;
61+
// We need to use dynamic repositories on Travis
62+
if (TravisCI.IsRunningOnTravisCI)
63+
{
64+
url = "https://github.com/GitTools/GitVersion.git";
65+
}
66+
6067
GitVersion(new GitVersionSettings
6168
{
6269
UpdateAssemblyInfo = true,
6370
LogFilePath = "console",
6471
OutputType = GitVersionOutput.BuildServer,
65-
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
72+
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe",
73+
Url = url
6674
});
6775
GitVersion assertedVersions = GitVersion(new GitVersionSettings
6876
{
6977
OutputType = GitVersionOutput.Json,
70-
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
78+
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe",
79+
Url = url
7180
});
7281

7382
version = assertedVersions.MajorMinorPatch;

0 commit comments

Comments
 (0)