diff --git a/.travis.yml b/.travis.yml index 7d9d206..d6db8d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,11 @@ os: - - linux -language: csharp -solution: GeUtilities.sln -mono: none -dotnet: 3.0.0 -install: - - dotnet restore - -script: -- dotnet build -- dotnet test GeUtilities.Tests/GeUtilities.Tests.csproj + - linux +matrix: + include: + - + dotnet: 3.0 + install: ['dotnet restore'] + language: csharp + mono: none + script: ['dotnet build', 'dotnet test GeUtilities.Tests/GeUtilities.Tests.csproj'] + solution: GeUtilities.sln diff --git a/GeUtilities.Tests/GeUtilities.Tests.csproj b/GeUtilities.Tests/GeUtilities.Tests.csproj index 690b0eb..fbb4bd8 100644 --- a/GeUtilities.Tests/GeUtilities.Tests.csproj +++ b/GeUtilities.Tests/GeUtilities.Tests.csproj @@ -36,10 +36,13 @@ - - - - + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/GeUtilities/GeUtilities.csproj b/GeUtilities/GeUtilities.csproj index aa67c52..babe90e 100644 --- a/GeUtilities/GeUtilities.csproj +++ b/GeUtilities/GeUtilities.csproj @@ -36,9 +36,12 @@ - - - + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/appveyor.yml b/appveyor.yml index b13e195..9f8f037 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,6 +10,21 @@ install: - dotnet restore - choco install opencover.portable - choco install codecov +before_build: + # We let choco to install the latest version of codecov; + # therefore, to correctly set the path to the folder of + # the installed version, the following is what this script + # does: + # 1- Search the installation path of codecov for every version + # (using the `Get-ChildItem1). + # 2- Append build path (i.e., `/build/netstandard1.0/CodeCoverage`) + # to the codecov to every item in the list returned in (1), AND + # separate every item in the list using ';' delimiter. + # 3- Append the generated directories to `PATH`. + # + # An alternative to this approach would be to pin the version + # codecov so its build path is always set to the pinned version. + - {ps: "$env:PATH = @($env:PATH) + [string]::join(\"\\build\\netstandard1.0\\CodeCoverage\\;\", (Get-ChildItem -LiteralPath \"C:\\Users\\appveyor\\.nuget\\packages\\microsoft.codecoverage\\\" -Directory -Recurse).fullname)"} build: verbosity: minimal clone_depth: 1