Skip to content

Commit e44b427

Browse files
committed
Azure pipeline
2 parents 0f0fa87 + a62d584 commit e44b427

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
################################################################################
44
obj/
55
/.vs/OpenMcdf/v14
6+
# all bin directories anywhere in the repo
67
bin/
7-
/TestResults
8+
TestResults/
89
/sources/Test/OpenMcdf.Test/bin/Debug
910
/sources/Test/OpenMcdf.PerfTest/obj/Debug
1011
/sources/Test/OpenMcdf.PerfTest/bin/Debug
@@ -27,7 +28,7 @@ bin/
2728
/Memory Test/bin/Debug
2829
/bin/Release/StructuredStorageXplorer
2930
/bin/Release/OpenMcdf.Extensions
30-
/bin/Release/
31+
/bin/Release
3132
/sources/Html Help/Help
3233
/.vs
3334
# User-specific files

azure-pipelines.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ASP.NET Core
2+
# Build and test ASP.NET Core projects targeting .NET Core.
3+
# Add steps that run tests, create a NuGet package, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
5+
6+
trigger:
7+
- master
8+
9+
pool:
10+
vmImage: 'Ubuntu-16.04'
11+
12+
variables:
13+
buildConfiguration: 'Release'
14+
libFramework: 'netstandard2.0'
15+
appFramework: 'netcoreapp2.0'
16+
# pay attention to slashes
17+
testsProject: 'sources/Test/OpenMcdf.Test/OpenMcdf.Test.csproj'
18+
buildProject: 'sources/OpenMcdf/OpenMcdf.csproj'
19+
# without filter it will timoeout in azure AFTER 60+ min
20+
testFilter: 'Name!=Test_FIX_BUG_GH_14&Name!=Test_FIX_BUG_GH_15'
21+
22+
steps:
23+
- script: dotnet build --configuration $(buildConfiguration) -f $(libFramework) $(buildProject)
24+
displayName: 'dotnet build $(buildConfiguration)'
25+
26+
- script: dotnet test -f $(appFramework) $(testsProject) --filter="$(testFilter)" --logger trx
27+
- task: PublishTestResults@2
28+
condition: succeededOrFailed()
29+
inputs:
30+
testRunner: VSTest
31+
testResultsFiles: '**/*.trx'

0 commit comments

Comments
 (0)