diff options
author | crupest <crupest@outlook.com> | 2019-02-09 13:50:56 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-02-09 13:50:56 +0800 |
commit | 5d023ec2f7cdadd6eafdf9fc0ec2fe0a5651ecee (patch) | |
tree | 1d0f27c939af58607677e581cccbe8abb9e4368a /azure-pipelines.yml | |
parent | 731ba4ff00ad6a4e4c5572dce5f7b131d9446013 (diff) | |
download | timeline-5d023ec2f7cdadd6eafdf9fc0ec2fe0a5651ecee.tar.gz timeline-5d023ec2f7cdadd6eafdf9fc0ec2fe0a5651ecee.tar.bz2 timeline-5d023ec2f7cdadd6eafdf9fc0ec2fe0a5651ecee.zip |
Update ci.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ad6a116a..3f3377a3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -14,26 +14,19 @@ variables: ASPNETCORE_ENVIRONMENT: 'Development' steps: -- task: DotNetCoreCLI@2 - inputs: - command: build - feedsToUse: config - nugetConfigPath: nuget.config +- script: dotnet build --configuration $(buildConfiguration) --configfile nuget.config +- script: dotnet test --configuration $(buildConfiguration) --logger trx -- task: DotNetCoreCLI@2 +- task: PublishTestResults@2 + condition: succeededOrFailed() inputs: - command: test - projects: '**/*Tests/*.csproj' - arguments: '--configuration $(buildConfiguration) --collect "Code coverage"' + testRunner: xUnit + testResultsFiles: '**/*.trx' -- task: DotNetCoreCLI@2 - inputs: - command: publish - projects: Timeline/Timeline.csproj - arguments: '--configuration $(buildConfiguration)' +- script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./publish/ - task: PublishPipelineArtifact@0 inputs: artifactName: 'timeline' - targetPath: Timeline/bin/Release/netcoreapp2.2/publish + targetPath: Timeline/publish |