Skip to content

Commit d8c297a

Browse files
committed
Enable upload NuGet Preview by using GitVersion, enable sourcelink, build symbol package (#81)
1 parent 82d8ad3 commit d8c297a

File tree

95 files changed

+121
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+121
-144
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
root = true
1+
root = true
22

33
[*]
44
# http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#end_of_line

GitLabApiClient.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29324.140

NuGet.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<activePackageSource>
44
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
55
</activePackageSource>
6-
</configuration>
6+
</configuration>

appveyor.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
image: Visual Studio 2019
2-
version: 1.0.{build}-alpha
32
configuration: Release
43
build:
54
verbosity: minimal
@@ -10,26 +9,28 @@ environment:
109

1110
skip_branch_with_pr: true
1211

13-
before_build:
14-
- ps: cinst -y codecov --no-progress
12+
install:
13+
- ps: dotnet tool install -g Codecov.Tool
14+
- ps: dotnet tool install -g GitVersion.Tool
1515
- ps: dotnet tool install -g dotnet-format
16+
17+
before_build:
1618
- ps: dotnet format --check --dry-run
19+
- ps: dotnet gitversion /l console /output buildserver
1720

1821
build_script:
19-
- ps: .\build.ps1
22+
- ps: .\build.ps1
2023

2124
test_script:
22-
- ps: .\test.ps1
25+
- ps: .\test.ps1
2326

2427
artifacts:
25-
- path: 'src\bin\Release\*.nupkg'
26-
name: Package
28+
- path: 'src\**\Release\*.nupkg'
29+
name: NuGet Packages
30+
- path: 'src\**\Release\*.snupkg'
31+
name: NuGet Symbol Packages
2732

2833
deploy:
29-
provider: NuGet
30-
api_key:
31-
secure: nsG5rMfSr/gLzEdOpIEAj7p0n2LKQrjO1hHR4C+kFyuQXBC8KlcAJrjgP5vnm1XA
32-
skip_symbols: false
33-
artifact: /.*\.nupkg/
34-
on:
35-
appveyor_repo_tag: true
34+
- provider: NuGet
35+
api_key:
36+
secure: nsG5rMfSr/gLzEdOpIEAj7p0n2LKQrjO1hHR4C+kFyuQXBC8KlcAJrjgP5vnm1XA

build.ps1

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Build()
55
{
66
exit 1
77
}
8-
8+
99
& dotnet build src\GitLabApiClient\GitLabApiClient.csproj | Write-Host
1010
if ($LastExitCode -ne 0)
1111
{
@@ -21,12 +21,7 @@ function Build()
2121

2222
function Pack()
2323
{
24-
$packageVersion = "$env:APPVEYOR_REPO_TAG_NAME"
25-
if (!$packageVersion) {
26-
return
27-
}
28-
29-
& dotnet pack src\GitLabApiClient\GitLabApiClient.csproj -c Release --no-build -p:PackageVersion=$packageVersion | Write-Host
24+
& dotnet pack src\GitLabApiClient\GitLabApiClient.csproj -c Release --no-build | Write-Host
3025
if ($LastExitCode -ne 0)
3126
{
3227
exit 1
@@ -39,4 +34,4 @@ function Main()
3934
Pack
4035
}
4136

42-
Main
37+
Main

docker/authentication_token.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ do
1212
echo "Unable to update root authentication_token retry in 30s"
1313
sleep 15
1414
fi
15-
done
15+
done

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ services:
1515
volumes:
1616
- './volumes/config:/etc/gitlab'
1717
- './volumes/logs:/var/log/gitlab'
18-
- './volumes/data:/var/opt/gitlab'
18+
- './volumes/data:/var/opt/gitlab'

docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
sh ./authentication_token.sh &
44
sh ./test_setup.sh &
5-
/assets/wrapper
5+
/assets/wrapper

src/GitLabApiClient/BranchClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Threading.Tasks;
44
using GitLabApiClient.Internal.Http;

src/GitLabApiClient/CommitsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Threading.Tasks;
44
using GitLabApiClient.Internal.Http;

0 commit comments

Comments
 (0)