Skip to content
This repository has been archived by the owner on Feb 23, 2025. It is now read-only.

Commit

Permalink
update build and run tests for 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leastprivilege committed Oct 18, 2019
1 parent 4a856a0 commit 7b80a71
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
27 changes: 23 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
trigger:
- master
- dev
- features/*

jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 2.x SDK (for testing)'
inputs:
packageType: 'sdk'
version: '2.x'
- task: UseDotNet@2
displayName: 'Install .NET Core 3.x SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: Bash@3
displayName: 'Build Script'
inputs:
Expand All @@ -18,16 +27,26 @@ jobs:
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 2.x SDK (for testing)'
inputs:
packageType: 'sdk'
version: '2.x'
- task: UseDotNet@2
displayName: 'Install .NET Core 3.x SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: PowerShell@2
displayName: 'Build Script'
inputs:
targetType: filePath
filePath: ./build.ps1
- task: NuGetCommand@2
displayName: 'MyGet push'
displayName: 'Push package to Github'
inputs:
command: push
packagesToPush: 'artifacts/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'MyGet'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
publishFeedCredentials: 'GitHub Packages'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "2.2.105"
"version": "3.0.100"
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>net461;netcoreapp2.1;netcoreapp2.2</TargetFrameworks>
<TargetFrameworks>net461;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 7b80a71

Please sign in to comment.