summary refs log tree commit diff
path: root/.vsts-shared.yml
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2018-07-19 20:49:51 -0400
committerOren Novotny <oren@novotny.org>2018-07-19 20:49:51 -0400
commit51848a1361afa502677724f2b4ae5d5b2e2f8ff9 (patch)
treed9a6137e7833a91310b158116cf74d034f66373c /.vsts-shared.yml
parentFix Synchronized for modern frameworks (diff)
downloadBouncyCastle.NET-ed25519-51848a1361afa502677724f2b4ae5d5b2e2f8ff9.tar.xz
Update build scripts to add code coverage
Diffstat (limited to '.vsts-shared.yml')
-rw-r--r--.vsts-shared.yml23
1 files changed, 13 insertions, 10 deletions
diff --git a/.vsts-shared.yml b/.vsts-shared.yml
index ba1238e72..e6887c280 100644
--- a/.vsts-shared.yml
+++ b/.vsts-shared.yml
@@ -2,18 +2,21 @@ parameters:
   signSteps: []
   
 steps:
-- task: NuGetToolInstaller@0
-  displayName: Use NuGet 4.7.0
+- task: DotNetCoreCLI@2  
   inputs:
-    versionSpec: 4.7.0
+    command: custom
+    custom: tool
+    arguments: install --tool-path . nbgv
+  displayName: Install NBGV tool
+  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
 
-- task: DotNetCoreCLI@2
-  inputs:
-    command: build
-    projects: scripts/setversion.csproj
-    arguments: -c $(BuildConfiguration)   
+- script: nbgv cloud
   displayName: Set Version
-  condition: eq(variables['system.pullrequest.isfork'], false)
+  condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
+
+- task: DotNetCoreInstaller@0
+  inputs:
+    version: '2.1.400-preview-009063'
 
 - task: DotNetCoreCLI@2
   inputs:
@@ -28,7 +31,7 @@ steps:
   inputs:
     command: test
     projects: .\crypto\test\crypto.test.csproj
-    arguments: -c $(BuildConfiguration)
+    arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)\CodeCoverage.runsettings /p:DebugType=portable
   displayName: Run Tests
   
 - ${{ parameters.signSteps }}