Browse Source

use as tool

Oren Novotny 7 years ago
parent
commit
0aaa781c42
3 changed files with 13 additions and 24 deletions
  1. 13 9
      .vsts.ix-shared.yml
  2. 0 7
      Ix.NET/Source/build/setversion.csproj
  3. 0 8
      Ix.NET/Source/build/version.json

+ 13 - 9
.vsts.ix-shared.yml

@@ -2,17 +2,21 @@ parameters:
   signStep: []
     
 steps:
-- task: DotNetCoreInstaller@0
+- task: DotNetCoreCLI@2  
   inputs:
-    version: '2.1.400-preview-009171'
+    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: Ix.NET/Source/build/setversion.csproj
-    arguments: -c $(BuildConfiguration)   
+- script: nbgv cloud -p Ix.NET\Source
   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-009171'
 
 - task: DotNetCoreCLI@2
   inputs:
@@ -27,7 +31,7 @@ steps:
   inputs:
     command: test
     projects: Ix.NET/Source/**/*.Tests.csproj
-    arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)/Ix.NET/Source/CodeCoverage.runsettings /p:DebugType=portable 
+    arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)/Ix.NET/Source/CodeCoverage.runsettings /p:DebugType=Full 
   displayName: Run Tests
   
 - ${{ parameters.signStep }}

+ 0 - 7
Ix.NET/Source/build/setversion.csproj

@@ -1,7 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
-  <PropertyGroup>
-    <TargetFramework>netstandard2.0</TargetFramework>
-  </PropertyGroup>
-
-</Project>

+ 0 - 8
Ix.NET/Source/build/version.json

@@ -1,8 +0,0 @@
-{
-  "inherit": true,
-  "cloudBuild": {
-    "buildNumber": {
-      "enabled": true
-    }
-  }
-}