pd365
/
XAF_how-to-use-the-integrated-mode-of-the-security-system-in-non-xaf-applications-e4908
Public
forked from DevExpress-Examples/XAF_Security_E4908
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
51 lines (43 loc) · 1.72 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- 19.2.5+
pool:
vmImage: 'windows-latest'
variables:
solution: 'NonXAFSecurityExamples.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'EasyTest'
steps:
- task: NuGetToolInstaller@1
- task: PowerShell@2
inputs:
targetType: 'inline'
script: 'Write-Host "##vso[task.setvariable variable=DX_NUGET_PUB;]$(DX_NUGET)"'
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'config'
nugetConfigPath: 'NuGet.config'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: PowerShell@2
displayName: 'EasyTest'
inputs:
targetType: 'inline'
script: |
$easyTestPath=".\XafSolution\XafSolution.Module\FunctionalTests"
sqllocaldb start MSSQLLocalDB
Nuget install DevExpress.EasyTest.TestExecutor -OutputDirectory Easytest -configfile NuGet.config
New-Item -ItemType directory -Path "Easytest\Bin\"
Get-ChildItem -Path "Easytest\*" -Include *.dll,*.exe -Recurse | Where {$_.FullName -notlike "*\netstandard*\*"} | Copy-Item -Destination "EasyTest\Bin\" -Force
Copy-Item "C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll" -Destination "EasyTest\Bin\" -Force
Easytest\Bin\TestExecutor.v19.2.exe $easyTestPath
Get-Content -Path $easyTestPath\TestsLog.xml
if(Select-String -Pattern 'Result="Failed"', 'Result="Warning"' -Path $easyTestPath\TestsLog.xml) { exit 1 }