Skip to content

Commit

Permalink
Feature/nuget (aliostad#246)
Browse files Browse the repository at this point in the history
* combining jobs

* wa

* wa

* formatting issues

* trigger cannot

* variable group

* build stuff

* linux build

* linux build

* linux build

* linux build - fix shell command

* linux build - install .net 2.0

* alpha2

* alpha4

* alpha5
  • Loading branch information
aliostad authored Jan 25, 2020
1 parent 3441812 commit 1d0f1bc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Description>CacheCow is an HTTP Caching Library for .NET</Description>
<Authors>Ali Kheyrollahi</Authors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>2.6.2</Version>
<Version>2.6.3-alpha2</Version>
<PackageProjectUrl>https://github.com/aliostad/CacheCow/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
Expand Down
54 changes: 35 additions & 19 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
pool:
vmImage: 'windows-latest'

steps:
jobs:
- job: build_windows
pool:
vmImage: 'windows-latest'
steps:
- script: build.bat
displayName: 'Run build and tests'

- script: dotnet --list-sdks
displayName: 'show sdks available'

- script: dotnet --list-runtimes
displayName: 'show runtimes available'

- script: build.bat
displayName: 'Run build and tests'

- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: VSTest
testResultsFiles: 'test/*/TestResults/*.trx'
failTaskOnFailedTests: true
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: VSTest
testResultsFiles: 'test/*/TestResults/*.trx'
failTaskOnFailedTests: true
- job: build_linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.0.3
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.100
- script: ./build.sh
displayName: 'Run build and tests'

- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: VSTest
testResultsFiles: 'test/*/TestResults/*.trx'
failTaskOnFailedTests: true
10 changes: 3 additions & 7 deletions publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
pool:
vmImage: 'windows-latest'

trigger:
tags:
include:
- v*

variables:
- group: nuget_publish
steps:

- script: echo $(api_key)
displayName: 'Pack and pushx'

- script: pack-push.bat $(api_key)
- script: pack-push.bat $(nuget_api_key)
displayName: 'Pack and push'

0 comments on commit 1d0f1bc

Please sign in to comment.