mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
CI: Enable C# tests
This commit is contained in:
parent
8e03560dbb
commit
7c0a6f3d9c
3 changed files with 36 additions and 1 deletions
|
|
@ -77,6 +77,14 @@ jobs:
|
|||
workingFolder: '$(Build.SourcesDirectory)\csharp'
|
||||
msbuildArgs: '/m /p:OnnxRuntimeBuildDirectory=$(Build.BinariesDirectory)'
|
||||
|
||||
- task: VSTest@2
|
||||
displayName: 'VsTest - C# Debug'
|
||||
inputs:
|
||||
testAssemblyVer2: '**\bin\Debug\**\*Tests.dll'
|
||||
searchFolder: '$(Build.SourcesDirectory)\csharp\test'
|
||||
runInParallel: true
|
||||
configuration: Debug
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build Release'
|
||||
inputs:
|
||||
|
|
@ -105,6 +113,14 @@ jobs:
|
|||
workingFolder: '$(Build.SourcesDirectory)\csharp'
|
||||
msbuildArgs: '/m /p:OnnxRuntimeBuildDirectory=$(Build.BinariesDirectory)'
|
||||
|
||||
- task: VSTest@2
|
||||
displayName: 'VsTest - C# Release'
|
||||
inputs:
|
||||
testAssemblyVer2: '**\bin\Release\**\*Tests.dll'
|
||||
searchFolder: '$(Build.SourcesDirectory)\csharp\test'
|
||||
runInParallel: true
|
||||
configuration: Release
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish unit test results'
|
||||
inputs:
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
- task: BatchScript@1
|
||||
displayName: 'setup env'
|
||||
inputs:
|
||||
filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\setup_env.bat'
|
||||
filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\setup_env_cuda.bat'
|
||||
modifyEnvironment: true
|
||||
workingFolder: '$(Build.BinariesDirectory)'
|
||||
- task: CmdLine@1
|
||||
|
|
@ -86,6 +86,15 @@ jobs:
|
|||
msbuildArchitecture: 'x64'
|
||||
workingFolder: '$(Build.SourcesDirectory)\csharp'
|
||||
msbuildArgs: '/m /p:OnnxRuntimeBuildDirectory=$(Build.BinariesDirectory)'
|
||||
|
||||
- task: VSTest@2
|
||||
displayName: 'VsTest - C# Debug'
|
||||
inputs:
|
||||
testAssemblyVer2: '**\bin\Debug\**\*Tests.dll'
|
||||
searchFolder: '$(Build.SourcesDirectory)\csharp\test'
|
||||
runInParallel: true
|
||||
configuration: Debug
|
||||
|
||||
- task: VSBuild@1
|
||||
displayName: 'Build Release'
|
||||
inputs:
|
||||
|
|
@ -114,6 +123,15 @@ jobs:
|
|||
restoreNugetPackages: false
|
||||
workingFolder: '$(Build.SourcesDirectory)\csharp'
|
||||
msbuildArgs: '/m /p:OnnxRuntimeBuildDirectory=$(Build.BinariesDirectory)'
|
||||
|
||||
- task: VSTest@2
|
||||
displayName: 'VsTest - C# Release'
|
||||
inputs:
|
||||
testAssemblyVer2: '**\bin\Release\**\*Tests.dll'
|
||||
searchFolder: '$(Build.SourcesDirectory)\csharp\test'
|
||||
runInParallel: true
|
||||
configuration: Release
|
||||
|
||||
- task: PublishTestResults@2
|
||||
displayName: 'Publish unit test results'
|
||||
inputs:
|
||||
|
|
|
|||
1
tools/ci_build/github/windows/setup_env_cuda.bat
Normal file
1
tools/ci_build/github/windows/setup_env_cuda.bat
Normal file
|
|
@ -0,0 +1 @@
|
|||
set PATH=%BUILD_BINARIESDIRECTORY%\packages\python;%BUILD_BINARIESDIRECTORY%\packages\python\DLLs;%BUILD_BINARIESDIRECTORY%\packages\python\Library\bin;%BUILD_BINARIESDIRECTORY%\packages\python\script;C:\local\cuda_10.0.130_win10\bin;%PATH%
|
||||
Loading…
Reference in a new issue