forked from DotSpatial/DotSpatial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
70 lines (60 loc) · 4.24 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 4.0.{build}
image: Visual Studio 2022
configuration: Release
environment:
packageVersion: 4.0
cache:
- source\packages -> **\packages.config
before_build:
- appveyor-retry dotnet restore source\DotSpatial.sln
build:
project: source\DotSpatial.sln
verbosity: normal
init:
- ps: $env:buildVersion = "$env:packageVersion.$env:appveyor_build_number"
- ps: $env:nugetVersion = "$env:packageVersion.$env:appveyor_build_number"
- ps: Update-AppveyorBuild -Version $env:buildVersion
dotnet_csproj:
patch: true
file: 'Directory.Build.props'
version_prefix: '{version}'
assembly_version: '{version}'
file_version: '{version}'
nuget:
account_feed: false
project_feed: false
after_build:
- ps: '[System.IO.File]::WriteAllText("$env:APPVEYOR_BUILD_FOLDER\source\bin\$env:CONFIGURATION\version.txt", $env:APPVEYOR_REPO_COMMIT)'
- ps: dotnet pack Source\Core\DotSpatial.Analysis\DotSpatial.Analysis.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Controls\DotSpatial.Controls.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Data\DotSpatial.Data.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Data.Forms\DotSpatial.Data.Forms.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Extensions\DotSpatial.Extensions.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Modeling.Forms\DotSpatial.Modeling.Forms.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.NTSExtension\DotSpatial.NTSExtension.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Positioning\DotSpatial.Positioning.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Positioning.Design\DotSpatial.Positioning.Design.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Positioning.Forms\DotSpatial.Positioning.Forms.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Projections\DotSpatial.Projections.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Projections.Forms\DotSpatial.Projections.Forms.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Serialization\DotSpatial.Serialization.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Symbology\DotSpatial.Symbology.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: dotnet pack Source\Core\DotSpatial.Symbology.Forms\DotSpatial.Symbology.Forms.csproj -p:PackageVersion=$env:nugetVersion -o ./ --no-restore --no-build
- ps: Push-AppveyorArtifact DotSpatial.Analysis.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Controls.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Data.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Data.Forms.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Extensions.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Modeling.Forms.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.NTSExtension.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Positioning.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Positioning.Design.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Positioning.Forms.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Projections.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Projections.Forms.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Serialization.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Symbology.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact DotSpatial.Symbology.Forms.$env:nugetVersion.nupkg
artifacts:
- path: source\bin\Release
name: Release