Skip to content

Commit 097cf23

Browse files
committed
Add tests to pipeline
1 parent 1f00991 commit 097cf23

File tree

1 file changed

+180
-0
lines changed

1 file changed

+180
-0
lines changed

.azuredevops/pipelines/DirectXTK12-GitHub-GDK-Dev17.yml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,3 +409,183 @@ jobs:
409409
inputs:
410410
cwd: '$(Build.SourcesDirectory)'
411411
cmakeArgs: --build out\build\x64-Debug-XboxOne
412+
413+
- job: BUILD_TEST_XBOXONE
414+
displayName: 'Test suite for Xbox One'
415+
timeoutInMinutes: 120
416+
cancelTimeoutInMinutes: 1
417+
steps:
418+
- checkout: self
419+
clean: true
420+
fetchTags: false
421+
fetchDepth: 1
422+
path: 's'
423+
- checkout: testRepo
424+
displayName: Fetch Tests
425+
clean: true
426+
fetchTags: false
427+
fetchDepth: 1
428+
path: 's/Tests'
429+
- task: NuGetToolInstaller@1
430+
displayName: 'Use NuGet'
431+
- task: PowerShell@2
432+
displayName: 'Create nuget.config with single source'
433+
inputs:
434+
targetType: inline
435+
script: |
436+
$xml = @'
437+
<?xml version="1.0" encoding="utf-8"?>
438+
<configuration>
439+
<packageSources>
440+
<clear />
441+
</packageSources>
442+
</configuration>
443+
'@
444+
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
445+
446+
- task: NuGetCommand@2
447+
displayName: 'NuGet set package source to ADO feed'
448+
inputs:
449+
command: custom
450+
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
451+
- task: nuget-security-analysis@0
452+
displayName: 'Secure Supply Chain Analysis'
453+
- task: NuGetAuthenticate@1
454+
displayName: 'NuGet Auth'
455+
- task: PowerShell@2
456+
displayName: 'NuGet Install GDK'
457+
inputs:
458+
targetType: filePath
459+
filePath: ./build/RestoreGDK.ps1
460+
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
461+
failOnStderr: true
462+
- task: NuGetCommand@2
463+
displayName: NuGet restore
464+
inputs:
465+
solution: Tests\D3D12Test\D3D12Test_GDKX_2022.sln
466+
selectOrConfig: config
467+
nugetConfigPath: NuGet.Config
468+
packagesDirectory: $(Build.SourcesDirectory)\Tests\packages
469+
- task: CopyFiles@2
470+
displayName: Set up Directory.Build.props
471+
inputs:
472+
SourceFolder: build
473+
Contents: 'Directory.Build.props'
474+
TargetFolder: $(Build.SourcesDirectory)
475+
- task: MSBuild@1
476+
displayName: Setup BWOI VCTargets
477+
inputs:
478+
solution: build/SetupBWOI.targets
479+
msbuildVersion: 17.0
480+
msbuildArchitecture: x64
481+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
482+
- task: VSBuild@1
483+
displayName: Build Tests xbdbg
484+
continueOnError: true
485+
inputs:
486+
solution: '**\*GDKX_2022*.sln'
487+
vsVersion: 17.0
488+
platform: Gaming.Xbox.XboxOne.x64
489+
configuration: Debug
490+
msbuildArchitecture: x64
491+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
492+
- task: VSBuild@1
493+
displayName: Build Tests xbrel
494+
continueOnError: true
495+
inputs:
496+
solution: '**\*GDKX_2022*.sln'
497+
vsVersion: 17.0
498+
platform: Gaming.Xbox.XboxOne.x64
499+
configuration: Release
500+
msbuildArchitecture: x64
501+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
502+
503+
- job: BUILD_TEST_SCARLETT
504+
displayName: 'Test suite for Xbox Series X|S'
505+
timeoutInMinutes: 120
506+
cancelTimeoutInMinutes: 1
507+
steps:
508+
- checkout: self
509+
clean: true
510+
fetchTags: false
511+
fetchDepth: 1
512+
path: 's'
513+
- checkout: testRepo
514+
displayName: Fetch Tests
515+
clean: true
516+
fetchTags: false
517+
fetchDepth: 1
518+
path: 's/Tests'
519+
- task: NuGetToolInstaller@1
520+
displayName: 'Use NuGet'
521+
- task: PowerShell@2
522+
displayName: 'Create nuget.config with single source'
523+
inputs:
524+
targetType: inline
525+
script: |
526+
$xml = @'
527+
<?xml version="1.0" encoding="utf-8"?>
528+
<configuration>
529+
<packageSources>
530+
<clear />
531+
</packageSources>
532+
</configuration>
533+
'@
534+
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
535+
536+
- task: NuGetCommand@2
537+
displayName: 'NuGet set package source to ADO feed'
538+
inputs:
539+
command: custom
540+
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
541+
- task: nuget-security-analysis@0
542+
displayName: 'Secure Supply Chain Analysis'
543+
- task: NuGetAuthenticate@1
544+
displayName: 'NuGet Auth'
545+
- task: PowerShell@2
546+
displayName: 'NuGet Install GDK'
547+
inputs:
548+
targetType: filePath
549+
filePath: ./build/RestoreGDK.ps1
550+
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER)
551+
failOnStderr: true
552+
- task: NuGetCommand@2
553+
displayName: NuGet restore
554+
inputs:
555+
solution: Tests\D3D12Test\D3D12Test_GDKX_2022.sln
556+
selectOrConfig: config
557+
nugetConfigPath: NuGet.Config
558+
packagesDirectory: $(Build.SourcesDirectory)\Tests\packages
559+
- task: CopyFiles@2
560+
displayName: Set up Directory.Build.props
561+
inputs:
562+
SourceFolder: build
563+
Contents: 'Directory.Build.props'
564+
TargetFolder: $(Build.SourcesDirectory)
565+
- task: MSBuild@1
566+
displayName: Setup BWOI VCTargets
567+
inputs:
568+
solution: build/SetupBWOI.targets
569+
msbuildVersion: 17.0
570+
msbuildArchitecture: x64
571+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
572+
- task: VSBuild@1
573+
displayName: Build Tests scardbg
574+
continueOnError: true
575+
inputs:
576+
solution: '**\*GDKX_2022*.sln'
577+
vsVersion: 17.0
578+
platform: Gaming.Xbox.Scarlett.x64
579+
configuration: Debug
580+
msbuildArchitecture: x64
581+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
582+
- task: VSBuild@1
583+
displayName: Build Tests scarrel
584+
continueOnError: true
585+
inputs:
586+
solution: '**\*GDKX_2022*.sln'
587+
vsVersion: 17.0
588+
platform: Gaming.Xbox.Scarlett.x64
589+
configuration: Release
590+
msbuildArchitecture: x64
591+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)

0 commit comments

Comments
 (0)