forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dotnet:main' into main
- Loading branch information
Showing
52 changed files
with
871 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
parameters: | ||
stageDependsOn: [] | ||
jobMatrix: [] # Should define jobMatrix.name, jobMatrix.displayName, jobMatrix.pool, jobMatrix.timeout, jobMatrix.testCategory | ||
mauiSourcePath: $(Build.SourcesDirectory) | ||
buildConfig: Debug | ||
repoLogPath: $(Build.Arcade.LogsPath) | ||
publishTaskPrefix: '1ES.' | ||
|
||
stages: | ||
- stage: IntegrationTests | ||
displayName: Run Integration Tests | ||
dependsOn: ${{ parameters.stageDependsOn }} | ||
jobs: | ||
- ${{ each job in parameters.jobMatrix }}: | ||
- job: ${{ job.name }} | ||
displayName: ${{ job.testCategory }} ${{ job.pool.os }} | ||
pool: ${{ job.pool }} | ||
timeoutInMinutes: ${{ job.timeout }} | ||
steps: | ||
- template: /eng/pipelines/arcade/setup-test-env.yml | ||
parameters: | ||
mauiSourcePath: ${{ parameters.mauiSourcePath }} | ||
buildConfig: ${{ parameters.buildConfig }} | ||
repoLogPath: ${{ parameters.repoLogPath }} | ||
|
||
- template: /eng/pipelines/common/run-dotnet-preview.yml | ||
parameters: | ||
displayName: Run Integration Tests - ${{ job.testCategory }} ${{ job.pool.os }} | ||
mauiSourcePath: ${{ parameters.mauiSourcePath }} | ||
command: test | ||
project: ${{ parameters.mauiSourcePath }}/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj | ||
arguments: '-c ${{ parameters.buildConfig }} --filter "Category=${{ job.testCategory }}" --logger trx --results-directory $(Agent.TempDirectory)/Microsoft.Maui.IntegrationTests' | ||
useExitCodeForErrors: true | ||
|
||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFormat: VSTest | ||
testResultsFiles: $(Agent.TempDirectory)/Microsoft.Maui.IntegrationTests/*.trx | ||
testRunTitle: Integration Tests - ${{ job.testCategory }} ${{ job.pool.os }} | ||
|
||
- task: ${{ parameters.publishTaskPrefix }}PublishPipelineArtifact@1 | ||
displayName: Publish Logs | ||
inputs: | ||
targetPath: ${{ parameters.repoLogPath }} | ||
artifact: Logs - Integration Tests ${{ job.testCategory }} ${{ job.pool.os }} $(System.JobAttempt) | ||
condition: always() | ||
|
||
- template: /eng/pipelines/common/fail-on-issue.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
parameters: | ||
mauiSourcePath: $(Build.SourcesDirectory) | ||
repoLogPath: $(Build.Arcade.LogsPath) | ||
androidSdkRoot: $(ANDROID_SDK_ROOT) | ||
|
||
steps: | ||
- template: /eng/pipelines/common/run-dotnet-preview.yml | ||
parameters: | ||
displayName: Create temporary android project | ||
mauiSourcePath: ${{ parameters.mauiSourcePath }} | ||
command: new | ||
arguments: android -o $(Agent.TempDirectory)/TempDroid | ||
|
||
- template: /eng/pipelines/common/run-dotnet-preview.yml | ||
parameters: | ||
displayName: Install android dependencies | ||
mauiSourcePath: ${{ parameters.mauiSourcePath }} | ||
project: $(Agent.TempDirectory)/TempDroid/TempDroid.csproj | ||
arguments: '-t:InstallAndroidDependencies -p:AndroidSdkDirectory=${{ parameters.androidSdkRoot }} -p:AcceptAndroidSdkLicenses=true -v:n -bl:${{ parameters.repoLogPath }}/install-android-dependencies.binlog' | ||
retryCountOnTaskFailure: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.