Skip to content

Commit c3936b1

Browse files
authored
skip tests and add pack/push to Azure pipleline (#776)
- push to Azure artifacts - updated .net sdk to 6.x - updated ubuntu to latest
1 parent d6a3793 commit c3936b1

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

azure-pipelines.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,32 @@ jobs:
5050
command: 'build'
5151
configuration: $(BuildConfiguration)
5252
projects: 'src/ExchangeSharpConsole/ExchangeSharpConsole.csproj'
53+
#- task: DotNetCoreCLI@2
54+
# displayName: 'Tests'
55+
# inputs:
56+
# command: 'test'
57+
# configuration: $(BuildConfiguration)
58+
# projects: 'tests/*/*.csproj'
59+
# publishTestResults: true
60+
# testRunTitle: 'All tests'
5361
- task: DotNetCoreCLI@2
54-
displayName: 'Tests'
62+
displayName: 'NuGet Pack'
5563
inputs:
56-
command: 'test'
57-
configuration: $(BuildConfiguration)
58-
projects: 'tests/*/*.csproj'
59-
publishTestResults: true
60-
testRunTitle: 'All tests'
64+
command: pack
65+
packagesToPack: '**/*.csproj'
66+
packDestination: '$(Build.ArtifactStagingDirectory)'
67+
versioningScheme: byPrereleaseNumber
68+
majorVersion: '$(Major)'
69+
minorVersion: '$(Minor)'
70+
patchVersion: '$(Patch)'
71+
- task: NuGetAuthenticate@0
72+
displayName: 'NuGet Authenticate'
73+
- task: NuGetCommand@2
74+
displayName: 'NuGet push'
75+
inputs:
76+
command: push
77+
publishVstsFeed: 'PublicProject/DigitalRuby'
78+
allowPackageConflicts: true
6179
- job: build_tag
6280
displayName: Build console app
6381
timeoutInMinutes: 5
@@ -83,7 +101,7 @@ jobs:
83101
condition: eq(variables['Agent.OS'], 'Darwin')
84102
inputs:
85103
packageType: sdk
86-
version: 3.0.100
104+
version: 6.x
87105
installationPath: $(Agent.ToolsDirectory)/dotnet
88106
- task: DotNetCoreCLI@2
89107
displayName: "Publish console executable"
@@ -114,7 +132,7 @@ jobs:
114132
dependsOn: build_tag
115133
continueOnError: false
116134
pool:
117-
vmImage: ubuntu-18.04
135+
vmImage: ubuntu-latest
118136
condition: or(eq(variables['Build.Reason'], 'Schedule'), startsWith(variables['Build.SourceBranch'], 'refs/tags'))
119137
steps:
120138
- bash: echo "##vso[task.setvariable variable=TAG;isOutput=true]$(git describe --tags --exact-match)"

0 commit comments

Comments
 (0)