antonyoung / Validators

Engine as validator, formatter of European Postal Codes and or International Bank Accounts Numbers ( IBAN, ) It's fast, it's simple and it works ( based on regular expressions and C#, NET Standard 2.1 ) Easy extendable, deployed as separate nuget-packages.
GNU General Public License v3.0
2 stars 1 forks source link

Feature: Azure devops pipeline via Linux. #9

Closed antonyoung closed 4 years ago

antonyoung commented 4 years ago

Description: Azure DevOps pipeline is currently using Windows as default. This has been changed now using Linux as default. xUnit is causing errors by tests captering errors! ( all tests capture errors via xUnit are now implemented as commented code. ) See also xUnit:issues

Solution:

Additional information: Currently the Azure DevOps pipeline, only builds and runs the tests, Would be nice also te create a nuget packages. And eventually deploy this nuget-package see also Feature #12

Example:

# .NET Core
# Build and test .NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: dotnet restore

- task: DotNetCoreCLI@2
  displayName: Build
  inputs:
    command: build
    projects: '**/*.csproj'
    arguments: '--configuration Release'

- task: DotNetCoreCLI@2
  displayName: Tests
  inputs:
    command: test
    projects: '**/*Tests/*.csproj'
    arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
antonyoung commented 4 years ago

The above .yml via linux works, it was a xUnit bug creating the problem.