Skip to content

Commit f514779

Browse files
Update Cake.Xamarin to target Cake v1.0.0
Co-authored-by: "C. Augusto Proiete" <augusto@proiete.com>
1 parent ab3240b commit f514779

20 files changed

Lines changed: 297 additions & 549 deletions

.appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#---------------------------------#
22
# Build Image #
33
#---------------------------------#
4-
image: Visual Studio 2017
4+
image: Visual Studio 2019
55

66
#---------------------------------#
77
# Build Script #
88
#---------------------------------#
99
build_script:
10-
- ps: .\build.ps1 -Target AppVeyor
10+
- ps: .\build.ps1 --target=CI
1111

1212
#---------------------------------#
1313
# Tests
@@ -40,11 +40,11 @@ branches:
4040
# Build Cache #
4141
#---------------------------------#
4242
cache:
43-
- tools -> recipe.cake, tools/packages.config
43+
- tools -> recipe.cake
4444

4545
#---------------------------------#
4646
# Skip builds for doc changes #
4747
#---------------------------------#
4848
skip_commits:
4949
# Regex for matching commit message
50-
message: /(doc).*/
50+
message: /\(doc\).*/

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"cake.tool": {
6+
"version": "0.38.5",
7+
"commands": [
8+
"dotnet-cake"
9+
]
10+
}
11+
}
12+
}

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ end_of_line = CRLF
1010
indent_style = space
1111
indent_size = 4
1212

13+
[*.sh]
14+
end_of_line = LF
15+
1316
[*.cs]
1417
indent_style = space
1518
indent_size = 4

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# Declare files that will always have CRLF line endings on checkout.
55
*.sln text eol=crlf
66

7+
# Declare files that should always be converted to LF regardless of platform
8+
*.sh text eol=lf
9+
*.dotsettings text eol=lf
10+
711
# Denote all files that are truly binary and should not be modified.
812
*.png binary
913
*.jpg binary

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ bin/
22
obj/
33
packages/
44
Components/
5-
tools/**
6-
!tools/packages.config
5+
tools/
76
nupkg/
87
*.userprefs
98
*.suo
109
.nugetapikey
1110
xtc-api-key
1211
xtc-email
12+
.vs
13+
.idea
14+
*.user
15+
16+
#Cake
17+
.cake/
18+
tools/**
1319
BuildArtifacts/
14-
.vs/

GitReleaseManager.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,48 @@
11
issue-labels-include:
22
- Breaking change
3-
- Feature
43
- Bug
4+
- Feature
5+
- Enhancement
56
- Improvement
67
- Documentation
78
- security
89
issue-labels-exclude:
910
- Build
11+
- Internal / Refactoring
1012
issue-labels-alias:
1113
- name: Documentation
1214
header: Documentation
1315
plural: Documentation
1416
- name: security
1517
header: Security
1618
plural: Security
19+
create:
20+
include-footer: true
21+
footer-heading: Where to get it
22+
footer-content: >
23+
You can download this release from
24+
[nuget](https://nuget.org/packages/Cake.Xamarin/{milestone}),
25+
or you can just reference it in a cake build script
26+
with `#addin nuget:?package=Cake.Xamarin&version={milestone}`.
27+
footer-includes-milestone: true
28+
milestone-replace-text: "{milestone}"
29+
include-sha-section: true
30+
sha-section-heading: "SHA256 Hashes of the release artifacts"
31+
sha-section-line-format: "- `{1}\t{0}`"
32+
export:
33+
include-created-date-in-title: true
34+
created-date-string-format: yyyy-MM-dd
35+
perform-regex-removal: true
36+
regex-text: '[\r\n]*### Where to get it[\r\n]*You can .*`\.[\r\n]*'
37+
multiline-regex: true
38+
close:
39+
use-issue-comments: true
40+
issue-comment: |-
41+
:tada: This issue has been resolved in version {milestone} :tada:
42+
43+
The release is available on:
44+
45+
- [GitHub Release](https://github.com/{owner}/{repository}/releases/tag/{milestone})
46+
- [NuGet Package](https://www.nuget.org/packages/{repository}/{milestone})
47+
48+
Your **[GitReleaseManager](https://github.com/GitTools/GitReleaseManager)** bot :package::rocket:

build.cmd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo on
2+
@cd %~dp0
3+
4+
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
5+
set DOTNET_CLI_TELEMETRY_OPTOUT=1
6+
set DOTNET_NOLOGO=1
7+
8+
dotnet tool restore
9+
@if %ERRORLEVEL% neq 0 goto :eof
10+
11+
dotnet cake recipe.cake --bootstrap
12+
@if %ERRORLEVEL% neq 0 goto :eof
13+
14+
dotnet cake recipe.cake %*

0 commit comments

Comments
 (0)