From f770d40f40f84fc9ed4e28e0855ace39f07a6227 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Wed, 23 May 2018 11:21:08 +0300 Subject: [PATCH 1/3] updated Shouldly --- src/GitVersionCore.Tests/GitVersionCore.Tests.csproj | 2 +- src/GitVersionExe.Tests/GitVersionExe.Tests.csproj | 2 +- src/GitVersionTask.Tests/GitVersionTask.Tests.csproj | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GitVersionCore.Tests/GitVersionCore.Tests.csproj b/src/GitVersionCore.Tests/GitVersionCore.Tests.csproj index d1fc934800..83cde8af1c 100644 --- a/src/GitVersionCore.Tests/GitVersionCore.Tests.csproj +++ b/src/GitVersionCore.Tests/GitVersionCore.Tests.csproj @@ -41,7 +41,7 @@ - + diff --git a/src/GitVersionExe.Tests/GitVersionExe.Tests.csproj b/src/GitVersionExe.Tests/GitVersionExe.Tests.csproj index 83c480c772..d2a5c3aa2a 100644 --- a/src/GitVersionExe.Tests/GitVersionExe.Tests.csproj +++ b/src/GitVersionExe.Tests/GitVersionExe.Tests.csproj @@ -45,7 +45,7 @@ - + diff --git a/src/GitVersionTask.Tests/GitVersionTask.Tests.csproj b/src/GitVersionTask.Tests/GitVersionTask.Tests.csproj index d5b4407780..b58c15326f 100644 --- a/src/GitVersionTask.Tests/GitVersionTask.Tests.csproj +++ b/src/GitVersionTask.Tests/GitVersionTask.Tests.csproj @@ -51,7 +51,7 @@ - + From 33c15191421a6195ffdbea4172b2916370398af2 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Wed, 23 May 2018 11:22:35 +0300 Subject: [PATCH 2/3] update cake to 0.27.2, remove travis cache, using MSBuild instead of DotNetBuild --- .travis.yml | 9 +-------- build.cake | 4 ++-- tools/packages.config | 4 ++-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00ca52ef6f..5259e80a37 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,8 @@ language: csharp sudo: required dist: trusty -dotnet: 2.1.103 +dotnet: 2.1.105 mono: - - 5.2.0 - - 5.4.1 - - 5.4.0 - latest os: - linux @@ -14,10 +11,6 @@ before_install: - git fetch --unshallow # Travis always does a shallow clone, but GitVersion needs the full history including branches and tags script: - ./build.sh -v Diagnostic -cache: - directories: - - src/packages - - tools env: global: - DOTNET_CLI_TELEMETRY_OPTOUT: 1 diff --git a/build.cake b/build.cake index b688b092ca..fb318ecdcd 100644 --- a/build.cake +++ b/build.cake @@ -23,7 +23,7 @@ string buildDir = "./build/"; void Build(string configuration, string nugetVersion, string semVersion, string version, string preReleaseTag) { - DotNetBuild("./src/GitVersion.sln", settings => + MSBuild("./src/GitVersion.sln", settings => { settings.SetConfiguration(configuration) .SetVerbosity(Verbosity.Minimal) @@ -477,7 +477,7 @@ Task("Upload-AppVeyor-Artifacts") Task("Travis") - .IsDependentOn("Run-Tests"); + .IsDependentOn("Run-Tests-In-NUnitConsole"); Task("Default") .IsDependentOn("Upload-AppVeyor-Artifacts"); diff --git a/tools/packages.config b/tools/packages.config index 0581e5aec2..0f070f2afe 100644 --- a/tools/packages.config +++ b/tools/packages.config @@ -1,5 +1,5 @@ - - + + From 835493e0f9f63da86a15e47dd19c85e5ee45fbe8 Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Thu, 24 May 2018 11:24:27 +0300 Subject: [PATCH 3/3] running the tests using dotnet test --- build.cake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.cake b/build.cake index fb318ecdcd..10930a0e24 100644 --- a/build.cake +++ b/build.cake @@ -142,8 +142,9 @@ Task("Run-Tests") { var settings = new DotNetCoreTestSettings { - Configuration = configuration, - NoBuild = true, + Configuration = configuration, + NoBuild = true, + Filter = "TestCategory!=NoMono" }; DotNetCoreTest("./src/GitVersionCore.Tests/GitVersionCore.Tests.csproj", settings); @@ -474,10 +475,8 @@ Task("Upload-AppVeyor-Artifacts") Error(exception.Dump()); }); - - Task("Travis") - .IsDependentOn("Run-Tests-In-NUnitConsole"); + .IsDependentOn("Run-Tests"); Task("Default") .IsDependentOn("Upload-AppVeyor-Artifacts");