-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add az pipepline yaml #247
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
jobs: | ||
|
||
- job: Build | ||
pool: | ||
vmImage: 'VS2017-Win2016' | ||
|
||
|
||
steps: | ||
- task: DotNetCoreCLI@2 | ||
displayName: 'dotnet restore' | ||
inputs: | ||
command: restore | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'dotnet build' | ||
inputs: | ||
projects: '**/*.sln' | ||
|
||
# - task: MSBuild@1 | ||
# displayName: 'Build solution **/*.sln' | ||
# inputs: | ||
# msbuildArchitecture: x64 | ||
|
||
# configuration: Release | ||
|
||
# - task: VSTest@2 | ||
# displayName: 'VsTest - testAssemblies' | ||
# inputs: | ||
# testAssemblyVer2: | | ||
# tests\**\*Tests*.dll | ||
# !**\obj\** | ||
|
||
# codeCoverageEnabled: true | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'dotnet test' | ||
inputs: | ||
command: test | ||
projects: tests\**\*.csproj | ||
arguments: /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
displayName: 'publish coverage results' | ||
inputs: | ||
codeCoverageTool: 'cobertura' | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml' | ||
|
||
- task: alanwales.resharper-code-analysis.custom-build-task.ResharperCli@1 | ||
displayName: 'Automated code quality checks' | ||
inputs: | ||
SolutionOrProjectPath: 'kubernetes-client.sln' | ||
|
||
FailBuildOnCodeIssues: false | ||
|
||
continueOnError: true | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'dotnet pack' | ||
inputs: | ||
command: pack | ||
packagesToPack: src/KubernetesClient/KubernetesClient.csproj | ||
packDirectory: '$(Build.ArtifactStagingDirectory)/nupkg' | ||
versioningScheme: byPrereleaseNumber | ||
|
||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Artifact: drop' | ||
inputs: | ||
PathtoPublish: '$(build.artifactstagingdirectory)/nupkg' | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
<PackageIconUrl>https://raw.githubusercontent.com/kubernetes/kubernetes/master/logo/logo.png</PackageIconUrl> | ||
<PackageTags>kubernetes;docker;containers;</PackageTags> | ||
|
||
<TargetFrameworks>netstandard1.4;net452;netcoreapp2.1;xamarinios10;monoandroid81</TargetFrameworks> | ||
<TargetFrameworks>netstandard1.4;net452;netcoreapp2.1</TargetFrameworks> | ||
<!-- <TargetFrameworks>netstandard1.4;net452;netcoreapp2.1;xamarinios10;monoandroid81</TargetFrameworks> --> | ||
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netstandard1.4;netcoreapp2.1</TargetFrameworks> | ||
<RootNamespace>k8s</RootNamespace> | ||
<SignAssembly>true</SignAssembly> | ||
|
@@ -20,7 +21,6 @@ | |
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="1.1.2" /> | ||
<PackageReference Include="Nerdbank.GitVersioning" Version="2.2.33" PrivateAssets="all" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to azure pipeline versioning
The pro for generating version when CI is that it differentiate |
||
<PackageReference Include="Portable.BouncyCastle" Version="1.8.1.3" /> | ||
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="1.1.2" /> | ||
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.10" /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still people interested in this for xamarin, can we retain it for xamarin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Azure pipeline windows image does not have ios sdk on it. Build will fail only on CI.
My idea is to create another issue for it and ping Azure pipeline team.