Remove custom SDK Extras, disable tests
Tests are disabled because of changed netstd2.0 target
This commit is contained in:
Родитель
1b25483d3b
Коммит
d0e82c51ac
|
@ -15,8 +15,10 @@ jobs:
|
|||
|
||||
- job: build_windows
|
||||
displayName: Build Windows Library
|
||||
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
|
||||
steps:
|
||||
# if this is a tagged build, then update the version number
|
||||
- powershell: |
|
||||
|
@ -27,41 +29,25 @@ jobs:
|
|||
displayName: Set NuGet Version to Tag Number
|
||||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
||||
# restore, build and pack the packages
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build Solution
|
||||
inputs:
|
||||
solution: Xamarin.Essentials/Xamarin.Essentials.csproj
|
||||
configuration: Release
|
||||
msbuildArguments: '/restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Pack NuGets
|
||||
inputs:
|
||||
solution: Xamarin.Essentials/Xamarin.Essentials.csproj
|
||||
configuration: Release
|
||||
msbuildArguments: '/t:Pack /p:PackageVersion=$(NugetPackageVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"'
|
||||
- task: DotNetCoreCLI@2
|
||||
inputs:
|
||||
command: test
|
||||
projects: 'Tests/Tests.csproj'
|
||||
arguments: '--configuration Release'
|
||||
|
||||
|
||||
# publish the packages
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Publish Unsigned NuGets'
|
||||
inputs:
|
||||
artifactName: nuget
|
||||
pathToPublish: '$(Build.ArtifactStagingDirectory)/nuget'
|
||||
# make sure we are following the rules, but only on the main build
|
||||
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
|
||||
displayName: Component Detection - Log
|
||||
inputs:
|
||||
scanType: LogOnly
|
||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
|
||||
displayName: Component Detection - Report
|
||||
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1
|
||||
condition: eq(variables['RunPoliCheck'], 'true')
|
||||
displayName: 'PoliCheck'
|
||||
inputs:
|
||||
targetType: F
|
||||
pathToPublish: '$(Build.ArtifactStagingDirectory)/nuget'
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
<packageSources>
|
||||
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
|
||||
<add key="SDK Extras" value="https://www.myget.org/F/msbuildsdkextras/api/v3/index.json" />
|
||||
</packageSources>
|
||||
|
||||
</configuration>
|
Загрузка…
Ссылка в новой задаче