diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-02-21 16:32:16 +0000 |
|---|---|---|
| committer | 杨宇千 <crupest@outlook.com> | 2019-02-21 16:32:16 +0000 |
| commit | 9ae2a899eb53b8ee31710a5533cdf21b0f14dafd (patch) | |
| tree | 8f22c966d15d928a5587385f38b5284f0691b2de /azure-pipelines.yml | |
| parent | 35f8562f1f1db36a42c53ce42c39db3d615deb0f (diff) | |
| parent | 504d770e51a07ca7765de725979412b6dacdcf15 (diff) | |
| download | timeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.tar.gz timeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.tar.bz2 timeline-9ae2a899eb53b8ee31710a5533cdf21b0f14dafd.zip | |
Merged PR 3: Add unit test for front side.
Related work items: #1
Diffstat (limited to 'azure-pipelines.yml')
| -rw-r--r-- | azure-pipelines.yml | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b67afdc2..4bbf12af 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,9 +3,6 @@ # Add steps that run tests, create a NuGet package, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core -trigger: -- master - pool: vmImage: 'Ubuntu-16.04' @@ -15,8 +12,10 @@ variables: steps: - script: dotnet build --configuration $(buildConfiguration) --configfile nuget.config + displayName: Dotnet Build - script: dotnet test Timeline.Tests --configuration $(buildConfiguration) --logger trx + displayName: Dotnet Test - task: PublishTestResults@2 condition: succeededOrFailed() @@ -24,7 +23,22 @@ steps: testRunner: VSTest testResultsFiles: '**/*.trx' +- script: yarn install + workingDirectory: Timeline/ClientApp + displayName: Yarn Install + +- script: yarn run test --no-watch --browsers=ChromeHeadless --reporters junit + workingDirectory: Timeline/ClientApp + displayName: Angular Test + +- task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testRunner: JUnit + testResultsFiles: '**/TESTS-*.xml' + - script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./publish/ + displayName: Dotnet Publish - task: PublishPipelineArtifact@0 inputs: |
