diff --git a/PMF.Tests/PMF.Tests.csproj b/PMF.Tests/PMF.Tests.csproj new file mode 100644 index 0000000..5b1791f --- /dev/null +++ b/PMF.Tests/PMF.Tests.csproj @@ -0,0 +1,16 @@ + + + + netcoreapp3.1 + + false + + + + + + + + + + diff --git a/PMF.Tests/UnitTest1.cs b/PMF.Tests/UnitTest1.cs new file mode 100644 index 0000000..5344159 --- /dev/null +++ b/PMF.Tests/UnitTest1.cs @@ -0,0 +1,14 @@ +using System; +using Xunit; + +namespace PMF.Tests +{ + public class UnitTest1 + { + [Fact] + public void Test1() + { + + } + } +} diff --git a/PMF.sln b/PMF.sln index 91ca07e..47400db 100644 --- a/PMF.sln +++ b/PMF.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30011.22 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PMF", "PMF\PMF.csproj", "{4D838612-8D2C-406D-AB8A-F088145756D4}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PMF.Tests", "PMF.Tests\PMF.Tests.csproj", "{C22706D4-8291-4F6C-B5FE-CF16E3F29697}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {4D838612-8D2C-406D-AB8A-F088145756D4}.Debug|Any CPU.Build.0 = Debug|Any CPU {4D838612-8D2C-406D-AB8A-F088145756D4}.Release|Any CPU.ActiveCfg = Release|Any CPU {4D838612-8D2C-406D-AB8A-F088145756D4}.Release|Any CPU.Build.0 = Release|Any CPU + {C22706D4-8291-4F6C-B5FE-CF16E3F29697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C22706D4-8291-4F6C-B5FE-CF16E3F29697}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C22706D4-8291-4F6C-B5FE-CF16E3F29697}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C22706D4-8291-4F6C-B5FE-CF16E3F29697}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/README.md b/README.md index 3b049ff..b8100e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PMF - Package Management Framework -[![Build Status](https://travis-ci.com/xX-TheDoctor-Xx/PMF.svg?branch=master)](https://travis-ci.com/xX-TheDoctor-Xx/PMF) +[![Build Status](https://travis-ci.com/xX-TheDoctor-Xx/PMF.svg?branch=master)](https://travis-ci.com/xX-TheDoctor-Xx/PMF) [![Build Status](https://travis-ci.com/xX-TheDoctor-Xx/PMF.svg?branch=master)](https://travis-ci.com/xX-TheDoctor-Xx/PMF) PMF is a barebones C# library that provides basic support for package management diff --git a/appveyor.yml b/appveyor.yml index 3f0a673..d25905a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,16 @@ version: 1.0.{build} skip_tags: true image: Visual Studio 2019 +skip_tags: true +dotnet_csproj: + patch: true + file: '**\*.csproj' + version: '{version}' + package_version: '{version}' +environment: + COVERALLS_REPO_TOKEN: + secure: R+Jc9tMD0NdANAabzHqtZi4gymBCKRbKas0s0LEUQh5xOQLQDVZFUcMpxV3Yfd4c + init: # Good practise, because Windows line endings are different from Unix/Linux ones - cmd: git config --global core.autocrlf true @@ -11,6 +21,18 @@ before_build: - cmd: dotnet restore build_script: # output will be in ./src/bin/debug/netcoreapp1.1/publish - - cmd: dotnet publish -after_build: - # For once the build has completed + - cmd: dotnet build -c Release +test_script: +- ps: >- + nuget install xunit.runner.console -OutputDirectory packages -Version 2.4.1 + + nuget install OpenCover -OutputDirectory packages -Version 4.7.922 + + dotnet tool install coveralls.net --version 1.0.0 --tool-path tools + + .\packages\OpenCover.4.7.922\tools\OpenCover.Console.exe -register:user -target:dotnet.exe "-targetargs:"".\packages\xunit.runner.console.2.4.1\tools\netcoreapp2.0\xunit.console.dll"" ""src\GameOfLife.xUnit.Tests\bin\Release\netcoreapp2.0\GameOfLife.xUnit.Tests.dll"" -noshadow -appveyor" -filter:"+[GameOfLife*]*" -oldStyle -output:opencoverCoverage.xml + + $coveralls = ".\tools\csmacnz.coveralls.exe" + + & $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID +