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 | 2f378157df13ee770bf1d14e3df21d01e876818c (patch) | |
tree | 618ed89a5f74a16fba24b4f9c87cc79eef74e90f /azure-pipelines.yml | |
parent | 4215fdf399dacbaa92b0ae2eb9dbd47774c04357 (diff) | |
download | timeline-2f378157df13ee770bf1d14e3df21d01e876818c.tar.gz timeline-2f378157df13ee770bf1d14e3df21d01e876818c.tar.bz2 timeline-2f378157df13ee770bf1d14e3df21d01e876818c.zip |
Use explicit dotnet restore.
Diffstat (limited to 'azure-pipelines.yml')
-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 |