diff options
author | crupest <crupest@outlook.com> | 2019-03-14 23:13:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-14 23:13:05 +0800 |
commit | 7c6e2c080085c004b7c5c3ec23ebf641b2efde90 (patch) | |
tree | acf412df7d321a5b21c921f50b61d44493af4f69 | |
parent | 891b11eaecc4fad7b1b537c7f7d0b1aac5e622d1 (diff) | |
download | timeline-7c6e2c080085c004b7c5c3ec23ebf641b2efde90.tar.gz timeline-7c6e2c080085c004b7c5c3ec23ebf641b2efde90.tar.bz2 timeline-7c6e2c080085c004b7c5c3ec23ebf641b2efde90.zip |
Use explicit dotnet restore.
-rw-r--r-- | azure-pipelines.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cf1a8c2d..edeaca8b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -41,7 +41,12 @@ steps: testRunner: JUnit testResultsFiles: '**/TESTS-*.xml' -- script: dotnet test Timeline.Tests/Timeline.Test-CI.csproj --configuration $(buildConfiguration) --configfile nuget.config --logger trx +- script: | + dotnet restore Timeline/Timeline-CI.csproj --configfile nuget.config + dotnet restore Timeline.Tests/Timeline.Test-CI.csproj --configfile nuget.config + displayName: Dotnet Restore + +- script: dotnet test Timeline.Tests/Timeline.Test-CI.csproj --configuration $(buildConfiguration) --no-restore --logger trx displayName: Dotnet Test - task: PublishTestResults@2 @@ -54,7 +59,7 @@ steps: workingDirectory: Timeline/ClientApp displayName: Client App Build -- script: dotnet publish Timeline/Timeline-CI.csproj --configuration $(buildConfiguration) --configfile nuget.config --output ./publish/ +- script: dotnet publish Timeline/Timeline-CI.csproj --configuration $(buildConfiguration) --no-restore --output ./publish/ displayName: Dotnet Publish - task: PublishPipelineArtifact@0 |