Skip to content

Commit dd98bde

Browse files
committed
Don't need dynamic repos any more on Travis
1 parent 8385b54 commit dd98bde

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

build.cake

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,17 @@ Task("Version")
5757
.IsDependentOn("DogfoodBuild")
5858
.Does(() =>
5959
{
60-
string url = null;
61-
string branch = null;
62-
// We need to use dynamic repositories on Travis
63-
if (TravisCI.IsRunningOnTravisCI)
64-
{
65-
url = "https://github.com/GitTools/GitVersion.git";
66-
branch = EnvironmentVariable("BRANCH");
67-
Information("Travis branch: {0}", branch);
68-
}
69-
7060
GitVersion(new GitVersionSettings
7161
{
7262
UpdateAssemblyInfo = true,
7363
LogFilePath = "console",
7464
OutputType = GitVersionOutput.BuildServer,
75-
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe",
76-
Url = url,
77-
Branch = branch
65+
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
7866
});
7967
GitVersion assertedVersions = GitVersion(new GitVersionSettings
8068
{
8169
OutputType = GitVersionOutput.Json,
82-
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe",
83-
Url = url,
84-
Branch = branch
70+
ToolPath = @"src\GitVersionExe\bin\Release\GitVersion.exe"
8571
});
8672

8773
version = assertedVersions.MajorMinorPatch;

0 commit comments

Comments
 (0)