forked from unoplatform/Uno.Wasm.Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci-windows-tests.yml
74 lines (59 loc) · 2.16 KB
/
.vsts-ci-windows-tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
parameters:
jobName: ''
netcore_version: ''
jobs:
- job: ${{ parameters.jobName }}
pool:
vmImage: 'windows-2019'
workspace:
clean: all
variables:
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
NETCORE_VERSION: ${{ parameters.netcore_version }}
steps:
- checkout: self
clean: true
- template: build/ci/gitversion.yml
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
condition: ne(variables['NETCORE_VERSION'], '2.2.x')
inputs:
packageType: sdk
version: ${{ parameters.netcore_version }}
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: UseDotNet@2
displayName: 'Install .NET 5 SDK'
inputs:
packageType: sdk
version: '5.0.100'
installationPath: $(Agent.ToolsDirectory)/dotnet
- pwsh: |
cd $(build.sourcesdirectory)/src/Uno.Wasm.Bootstrap
dotnet msbuild /r /p:Configuration=Release
displayName: Build bootstrap
- pwsh: |
cd $(build.sourcesdirectory)/src
dotnet msbuild /r /p:Configuration=Release /p:DISABLE_CLIHOST_NET5=true /t:Publish /m:1 Uno.Wasm.Bootstrap-netcore-only.slnf /bl:$(build.artifactstagingdirectory)/SampleNet5-win.binlog
displayName: Build NetCore-Wasm Sample
- pwsh: |
$(build.sourcesdirectory)\build\scripts\run-tests-windows.ps1 `
"$(build.sourcesdirectory)\src\Uno.Wasm.AotTests.net5\bin\Release\net5.0\dist" `
"$(build.sourcesdirectory)\src\WasmAot.UITests" `
"http://localhost:8000/"
displayName: Raytracer UI Tests Net5
env:
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
- pwsh: |
$(build.sourcesdirectory)\build\scripts\run-tests-windows.ps1 `
"$(build.sourcesdirectory)\src\Uno.Wasm.StaticLinking.Aot.Net5\bin\Release\net5.0\dist" `
"$(build.sourcesdirectory)\src\Uno.Wasm.StaticLinking.Aot.UITests" `
"http://localhost:8000/"
displayName: StaticLinking.Aot Tests Net5
env:
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: uno-wasm-bootstrap-linux-aot
ArtifactType: Container