azure-pipelines.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. trigger:
  2. - development
  3. - master
  4. pool:
  5. vmImage: 'windows-latest'
  6. variables:
  7. solution: '**/*.sln'
  8. buildPlatform: 'Any CPU'
  9. buildConfiguration: 'Release'
  10. steps:
  11. - task: NuGetToolInstaller@1
  12. - task: NuGetCommand@2
  13. inputs:
  14. restoreSolution: '$(solution)'
  15. - task: DotNetCoreCLI@2
  16. displayName: Build
  17. inputs:
  18. command: 'build'
  19. projects: '**/*.csproj'
  20. arguments: '--configuration Release'
  21. - task: DotNetCoreCLI@2
  22. displayName: Tests
  23. inputs:
  24. command: test
  25. projects: '**/*Tests/*.csproj'
  26. arguments: '--configuration $(buildConfiguration)'
  27. #- task: PowerShell@2
  28. # inputs:
  29. # targetType: 'inline'
  30. # script: '& "$env:userprofile\.nuget\packages\opencover\4.7.1221\tools\OpenCover.Console.exe" -register -target:"$env:programfiles/dotnet/dotnet.exe" -targetargs:test -filter:"+[*]*" -output:".\PixiEditor_coverage.xml" -oldstyle'
  31. # workingDirectory: 'PixiEditorTests\'
  32. # displayName: Collect code coverage
  33. # Disiabled, because there is a problem with .NET 6 and OpenCover.Console.exe
  34. #- task: CmdLine@2
  35. # continueOnError: true
  36. # inputs:
  37. # script: codecov -f .\PixiEditorTests\PixiEditor_coverage.xml -t $(CODECOV_TOKEN)
  38. # displayName: Upload to Codecov.io