Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haplois authored Jan 25, 2021
1 parent c8d80cf commit 872ba54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ jobs:
modifyEnvironment: false
failOnStandardError: true

- task: PublishTestResults@2
displayName: 'Publish Test Results **\*.trx'
inputs:
testResultsFormat: VSTest
testResultsFiles: '**\*.trx'
condition: succeededOrFailed()

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)\artifacts'
Expand Down Expand Up @@ -124,16 +131,25 @@ jobs:
steps:
- script: ./build.sh -c $(buildConfiguration)
displayName: 'Build'

- script: ./test.sh -c $(buildConfiguration) -p Unit
displayName: 'Unit tests'

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'testArtifacts'
targetPath: '$(Build.SourcesDirectory)/artifacts'

- script: ./tools/dotnet-linux/dotnet build -c $(buildConfiguration) ./test/TestAssets/TestAssets.sln
displayName: 'Build test assets'

- script: ./test.sh -c $(buildConfiguration) -p Acceptance
displayName: 'Acceptance tests'



- task: PublishTestResults@2
displayName: 'Publish Test Results **/*.trx'
inputs:
testResultsFormat: VSTest
testResultsFiles: '**/*.trx'
condition: succeededOrFailed()
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function invoke_test()
local dotnet=$(_get_dotnet_path)
local vstest=$TP_OUT_DIR/$TPB_Configuration/$TPB_TargetFrameworkCore/vstest.console.dll

find ./test -path $PROJECT_NAME_PATTERNS | xargs $dotnet $vstest --parallel --testcasefilter:"TestCategory!=Windows&TestCategory!=Windows-Review"
find ./test -path $PROJECT_NAME_PATTERNS | xargs $dotnet $vstest --parallel --testcasefilter:"TestCategory!=Windows&TestCategory!=Windows-Review" --logger:"trx"
}

#
Expand Down

0 comments on commit 872ba54

Please sign in to comment.