|
| 1 | +resources: |
| 2 | +- repo: self |
| 3 | +queue: |
| 4 | + name: Hosted VS2017 |
| 5 | + demands: msbuild |
| 6 | + |
| 7 | + |
| 8 | +variables: |
| 9 | + BuildConfiguration: 'Debug' |
| 10 | +steps: |
| 11 | +- task: DotNetCoreCLI@2 |
| 12 | + displayName: dotnet restore |
| 13 | + inputs: |
| 14 | + command: restore |
| 15 | + projects: 'CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj' |
| 16 | + vstsFeed: '54754426-96db-4f6e-8a3a-64265d1cc147' |
| 17 | + includeNuGetOrg: false |
| 18 | + enabled: false |
| 19 | + |
| 20 | +- task: DotNetCoreCLI@2 |
| 21 | + displayName: dotnet restore NuGet.config |
| 22 | + inputs: |
| 23 | + command: restore |
| 24 | + projects: 'CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj' |
| 25 | + feedsToUse: config |
| 26 | + nugetConfigPath: 'CredentialProvider.Microsoft/NuGet.config' |
| 27 | + |
| 28 | +- task: DotNetCoreCLI@2 |
| 29 | + displayName: dotnet build |
| 30 | + inputs: |
| 31 | + projects: 'CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj' |
| 32 | + arguments: '--configuration $(BuildConfiguration)' |
| 33 | + |
| 34 | +- task: DotNetCoreCLI@2 |
| 35 | + displayName: dotnet test |
| 36 | + inputs: |
| 37 | + command: test |
| 38 | + projects: 'CredentialProvider.Microsoft.Tests/CredentialProvider.Microsoft.Tests.csproj' |
| 39 | + |
| 40 | +- task: MSBuild@1 |
| 41 | + displayName: Build VSIX |
| 42 | + inputs: |
| 43 | + solution: 'MicrosoftCredentialProviderVSIX/MicrosoftCredentialProviderVSIX.csproj' |
| 44 | + configuration: '$(BuildConfiguration)' |
| 45 | + msbuildArguments: '/p:OutputPath=$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\vsix\' |
| 46 | + |
| 47 | +- task: DotNetCoreCLI@2 |
| 48 | + displayName: dotnet custom |
| 49 | + inputs: |
| 50 | + command: custom |
| 51 | + projects: 'CredentialProvider.Microsoft/CredentialProvider.Microsoft.csproj' |
| 52 | + custom: pack |
| 53 | + arguments: '/p:NuspecFile=CredentialProvider.Microsoft.nuspec /p:NuspecProperties=VersionSuffix=-CI-$(Build.BuildNumber) --output $(Build.ArtifactStagingDirectory)\$(BuildConfiguration)' |
| 54 | + |
| 55 | +- task: DotNetCoreCLI@2 |
| 56 | + displayName: dotnet push |
| 57 | + inputs: |
| 58 | + command: push |
| 59 | + packagesToPush: '$(Build.ArtifactStagingDirectory)/$(BuildConfiguration)/*.nupkg' |
| 60 | + publishVstsFeed: '54754426-96db-4f6e-8a3a-64265d1cc147' |
| 61 | + enabled: false |
| 62 | + condition: and(eq(variables['PushNupkg'], 'true')) |
| 63 | + |
| 64 | +- task: PublishBuildArtifacts@1 |
| 65 | + displayName: Publish Artifact $(Build.BuildNumber) |
| 66 | + inputs: |
| 67 | + PathtoPublish: '$(Build.ArtifactStagingDirectory)\$(BuildConfiguration)\' |
| 68 | + ArtifactName: '$(Build.BuildNumber)' |
0 commit comments