Skip to content
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 files for first version #1

Merged
merged 14 commits into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clean pipeline file and set initial version to 0.1.0-alpha.
  • Loading branch information
eduherminio committed Apr 30, 2020
commit f7b1c6656c6bae7ca5ce53838c9cc4e2ca17d334
86 changes: 41 additions & 45 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 4,6 @@ trigger:
branches:
include:
- master
# TODO REMOVE
- initial-development
# END TODO

stages:
- stage: CI
Expand Down Expand Up @@ -95,8 92,8 @@ stages:
- stage: CD
displayName: 'Pack & push'
dependsOn: 'CI'
# condition: and(succeeded('CI'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['PackageVersion'], ''))
condition: and(succeeded('CI'), eq(variables['Build.SourceBranch'], 'refs/heads/initial-development'), ne(variables['PackageVersion'], ''))
condition: and(succeeded('CI'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['PackageVersion'], ''))
# It makes sense to allow other branches only of version replacement works with pre-release labels (-alpha-1, etc.)
jobs:
- job: cd
displayName: 'Pack & push linux'
Expand Down Expand Up @@ -130,14 127,14 @@ stages:
dotnet new tool-manifest
dotnet tool install dotnet-version-cli --version 1.1.2

- task: CmdLine@2
displayName: 'Modify SheepTools version'
inputs:
failOnStderr: true
script: |
dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)
dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)
dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)
#- task: CmdLine@2
# displayName: 'Modify SheepTools version'
# inputs:
# failOnStderr: true
# script: |
# dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)
# dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)
# dotnet version -f src/SheepTools/SheepTools.csproj --skip-vcs $(PackageVersion)

- task: DotNetCoreCLI@2
displayName: 'Build'
Expand All @@ -148,7 145,6 @@ stages:

- task: DotNetCoreCLI@2
displayName: 'Generate SheepTools NuGet package'
condition: ne(variables['PackageVersion'], '')
inputs:
command: 'pack'
arguments: '--configuration Release'
Expand All @@ -163,34 159,34 @@ stages:
pathtoPublish: '$(Build.SourcesDirectory)/SheepTools/Artifacts/'
artifactName: 'SheepTools'

# - task: NuGetCommand@2
# displayName: 'Push NuGet package'
# inputs:
# command: 'push'
# packagesToPush: '$(Build.SourcesDirectory)/SheepTools/Artifacts/*.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'SheepTools_NuGet'
# verbosityPush: 'Detailed'

# - task: NuGetCommand@2
# displayName: 'Push GitHub package'
# inputs:
# command: 'push'
# packagesToPush: '$(Build.SourcesDirectory)/SheepTools/Artifacts/*.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'SheepTools_GitHub'
# verbosityPush: 'Detailed'

# - task: CmdLine@2
# displayName: 'Commit and push version increment'
# inputs:
# failOnStderr: true
# workingDirectory: $(Build.SourcesDirectory)/SheepTools
# script: |
# git checkout master
# git status
# git add -A
# git commit -m "Release v$(PackageVersion)"
# git tag -a v$(PackageVersion) -m "v$(PackageVersion)"
# git push
# git push --tags
- task: NuGetCommand@2
displayName: 'Push NuGet package'
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/SheepTools/Artifacts/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'SheepTools_NuGet'
verbosityPush: 'Detailed'

- task: NuGetCommand@2
displayName: 'Push GitHub package'
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/SheepTools/Artifacts/*.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'SheepTools_GitHub'
verbosityPush: 'Detailed'

- task: CmdLine@2
displayName: 'Commit and push version increment'
inputs:
failOnStderr: true
workingDirectory: $(Build.SourcesDirectory)/SheepTools
script: |
git checkout master
git status
git add -A
git commit -m "Release v$(PackageVersion)"
git tag -a v$(PackageVersion) -m "v$(PackageVersion)"
git push
git push --tags
6 changes: 3 additions & 3 deletions src/SheepTools.Moq/SheepTools.Moq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 10,12 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Title>SheepTools.Moq</Title>
<PackageId>SheepTools.Moq</PackageId>
<Version>0.1.0</Version>
<Version>0.1.0-alpha</Version>
<PackageTags>Tools, Productivity, Extensions</PackageTags>
<Tags>$(PackageTags)</Tags>
<Authors>Eduardo Cáceres</Authors>
<Description>
Useful toolbox with Moq-related extension methods
Handy toolbox with Moq-related extension methods.
</Description>
<PackageLicenseUrl>https://github.com/eduherminio/SheepTools/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/eduherminio/SheepTools</PackageProjectUrl>
Expand All @@ -26,7 26,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.3" />
<PackageReference Include="Moq" Version="4.14.0" />
<PackageReference Include="Moq" Version="4.14.1" />
</ItemGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/SheepTools.XUnit/SheepTools.XUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 12,12 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Title>SheepTools.XUnit</Title>
<PackageId>SheepTools.XUnit</PackageId>
<Version>0.1.0</Version>
<Version>0.1.0-alpha</Version>
<PackageTags>Tools, Productivity, Extensions</PackageTags>
<Tags>$(PackageTags)</Tags>
<Authors>Eduardo Cáceres</Authors>
<Description>
Useful toolbox with XUnit-related extension methods
Handy toolbox with XUnit-related extension methods.
</Description>
<PackageLicenseUrl>https://github.com/eduherminio/SheepTools/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/eduherminio/SheepTools</PackageProjectUrl>
Expand Down
4 changes: 2 additions & 2 deletions src/SheepTools/SheepTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 10,12 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Title>SheepTools</Title>
<PackageId>SheepTools</PackageId>
<Version>0.1.0</Version>
<Version>0.1.0-alpha</Version>
<PackageTags>Tools, Productivity, Extensions</PackageTags>
<Tags>$(PackageTags)</Tags>
<Authors>Eduardo Cáceres</Authors>
<Description>
Useful toolbox with commonly used classes and extension methods
Handy toolbox with commonly used classes and extension methods.
</Description>
<PackageLicenseUrl>https://github.com/eduherminio/SheepTools/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/eduherminio/SheepTools</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion tests/SheepTools.Test/SheepTools.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 8,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Moq" Version="4.14.0" />
<PackageReference Include="Moq" Version="4.14.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
Expand Down