aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-04 23:42:43 +0800
committercrupest <crupest@outlook.com>2019-02-04 23:42:43 +0800
commit7e411870f6c2b36c52ef189a2c48ebce4c61a004 (patch)
tree04e1fcf8b68484ab4c5c7c91896d8c8a00fdcd9a
parent8e17f394f0d879e034dad3d02b03d7b21248aa67 (diff)
downloadtimeline-7e411870f6c2b36c52ef189a2c48ebce4c61a004.tar.gz
timeline-7e411870f6c2b36c52ef189a2c48ebce4c61a004.tar.bz2
timeline-7e411870f6c2b36c52ef189a2c48ebce4c61a004.zip
Add myget repository source.
-rw-r--r--azure-pipelines.yml10
-rw-r--r--nuget.config6
2 files changed, 14 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1c521e4a..3c191665 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -13,9 +13,15 @@ variables:
buildConfiguration: 'Release'
steps:
-- script: dotnet build --configuration $(buildConfiguration)
- displayName: 'dotnet build $(buildConfiguration)'
+- task: DotNetCoreCLI@2
+ inputs:
+ command: build
+ feedsToUse: config
+ nugetConfigPath: nuget.config
+
- task: DotNetCoreCLI@2
inputs:
command: test
+ projects: '**/*Tests/*.csproj'
+ arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
diff --git a/nuget.config b/nuget.config
new file mode 100644
index 00000000..6205a567
--- /dev/null
+++ b/nuget.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <packageSources>
+ <add key="aspnetcore-dev" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
+ </packageSources>
+</configuration>