Skip to content

Commit

Permalink
Merge pull request #31 from dmariogatto/cake110
Browse files Browse the repository at this point in the history
Update to Target Cake 1.0.0
  • Loading branch information
augustoproiete authored Nov 15, 2021
2 parents ab3240b + f514779 commit 12d25c9
Show file tree
Hide file tree
Showing 20 changed files with 297 additions and 549 deletions.
8 changes: 4 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#---------------------------------#
# Build Image #
#---------------------------------#
image: Visual Studio 2017
image: Visual Studio 2019

#---------------------------------#
# Build Script #
#---------------------------------#
build_script:
- ps: .\build.ps1 -Target AppVeyor
- ps: .\build.ps1 --target=CI

#---------------------------------#
# Tests
Expand Down Expand Up @@ -40,11 +40,11 @@ branches:
# Build Cache #
#---------------------------------#
cache:
- tools -> recipe.cake, tools/packages.config
- tools -> recipe.cake

#---------------------------------#
# Skip builds for doc changes #
#---------------------------------#
skip_commits:
# Regex for matching commit message
message: /(doc).*/
message: /\(doc\).*/
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "0.38.5",
"commands": [
"dotnet-cake"
]
}
}
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ end_of_line = CRLF
indent_style = space
indent_size = 4

[*.sh]
end_of_line = LF

[*.cs]
indent_style = space
indent_size = 4
Expand Down
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Declare files that should always be converted to LF regardless of platform
*.sh text eol=lf
*.dotsettings text eol=lf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
11 changes: 8 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ bin/
obj/
packages/
Components/
tools/**
!tools/packages.config
tools/
nupkg/
*.userprefs
*.suo
.nugetapikey
xtc-api-key
xtc-email
.vs
.idea
*.user

#Cake
.cake/
tools/**
BuildArtifacts/
.vs/
34 changes: 33 additions & 1 deletion GitReleaseManager.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,48 @@
issue-labels-include:
- Breaking change
- Feature
- Bug
- Feature
- Enhancement
- Improvement
- Documentation
- security
issue-labels-exclude:
- Build
- Internal / Refactoring
issue-labels-alias:
- name: Documentation
header: Documentation
plural: Documentation
- name: security
header: Security
plural: Security
create:
include-footer: true
footer-heading: Where to get it
footer-content: >
You can download this release from
[nuget](https://nuget.org/packages/Cake.Xamarin/{milestone}),
or you can just reference it in a cake build script
with `#addin nuget:?package=Cake.Xamarin&version={milestone}`.
footer-includes-milestone: true
milestone-replace-text: "{milestone}"
include-sha-section: true
sha-section-heading: "SHA256 Hashes of the release artifacts"
sha-section-line-format: "- `{1}\t{0}`"
export:
include-created-date-in-title: true
created-date-string-format: yyyy-MM-dd
perform-regex-removal: true
regex-text: '[\r\n]*### Where to get it[\r\n]*You can .*`\.[\r\n]*'
multiline-regex: true
close:
use-issue-comments: true
issue-comment: |-
:tada: This issue has been resolved in version {milestone} :tada:
The release is available on:
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone})
- [NuGet Package](https://www.nuget.org/packages/{repository}/{milestone})
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:
14 changes: 14 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo on
@cd %~dp0

set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
set DOTNET_CLI_TELEMETRY_OPTOUT=1
set DOTNET_NOLOGO=1

dotnet tool restore
@if %ERRORLEVEL% neq 0 goto :eof

dotnet cake recipe.cake --bootstrap
@if %ERRORLEVEL% neq 0 goto :eof

dotnet cake recipe.cake %*
Loading

0 comments on commit 12d25c9

Please sign in to comment.