forked from reactivemarbles/DynamicData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
155 lines (124 loc) · 5.33 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# configuration for master
-
branches:
only:
- master
environment:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
version: 6.1.4.{build}
image: Visual Studio 2017
configuration: Release
install:
- cmd:
nuget:
disable_publish_on_pr: true
build_script:
- cmd: >-
dotnet --info
dotnet build DynamicData.sln --configuration Release /p:Version=%APPVEYOR_BUILD_VERSION%
dotnet pack DynamicData\DynamicData.csproj --configuration Release --no-build --include-symbols --include-source /p:Version=%APPVEYOR_BUILD_VERSION%
dotnet pack DynamicData.ReactiveUI\DynamicData.ReactiveUI.csproj --configuration Release --no-build --include-symbols --include-source /p:Version=%APPVEYOR_BUILD_VERSION%
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.symbols.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.symbols.nupkg
test: off
test_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
dotnet test DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build
dotnet test DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build
deploy:
- provider: NuGet
api_key:
secure: CnOOhO/BwAogsD+dC9Q9BD38q6nxehHPS5LOHU977QtiJpqx3qE6vP+V+GHzpwac
skip_symbols: false
on:
# Only publish from the master branch
branch: master
appveyor_repo_tag: true
# configuration for version 4
-
version: 4.16.0.{build}
branches:
only:
- Version4
image: Visual Studio 2017
configuration: Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
nuget:
account_feed: true
disable_publish_on_pr: true
before_build:
- cmd: >-
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
nuget restore DynamicData.sln
build:
project: DynamicData.sln
publish_nuget: true
publish_nuget_symbols: true
include_nuget_references: true
verbosity: minimal
after_build:
- cmd: >-
7z a DynamicData.zip %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\*.*
appveyor PushArtifact DynamicData.zip
test: off
# test_script:
# - cmd: >-
# cd %APPVEYOR_BUILD_FOLDER%
#
# %APPVEYOR_BUILD_FOLDER%\packages\xunit.runner.console.2.2.0\tools\xunit.console %APPVEYOR_BUILD_FOLDER%\DynamicData.Tests\bin\Release\DynamicData.Tests.dll
deploy:
- provider: NuGet
api_key:
secure: CnOOhO/BwAogsD+dC9Q9BD38q6nxehHPS5LOHU977QtiJpqx3qE6vP+V+GHzpwac
skip_symbols: false
on:
# Only publish from the Version4 branch
branch: Version4
appveyor_repo_tag: true
# configuration for all other branches
-
branches:
except:
- master
- Version4
environment:
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
version: 99.99.99.{build}-branches
image: Visual Studio 2017
configuration: Release
install:
- cmd:
nuget:
disable_publish_on_pr: true
build_script:
- cmd: >-
dotnet --info
dotnet build DynamicData.sln --configuration Release /p:Version=%APPVEYOR_BUILD_VERSION%
dotnet pack DynamicData\DynamicData.csproj --configuration Release --no-build --include-symbols --include-source /p:Version=%APPVEYOR_BUILD_VERSION%
dotnet pack DynamicData.ReactiveUI\DynamicData.ReactiveUI.csproj --configuration Release --no-build --include-symbols --include-source /p:Version=%APPVEYOR_BUILD_VERSION%
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData\bin\Release\DynamicData.%APPVEYOR_BUILD_VERSION%.symbols.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.nupkg
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\DynamicData.ReactiveUI\bin\Release\DynamicData.ReactiveUI.%APPVEYOR_BUILD_VERSION%.symbols.nupkg
test: off
# Hangs indefinitely and I do not know why as the same command works locally
test_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
dotnet test DynamicData.Tests\DynamicData.Tests.csproj --configuration Release --no-build
dotnet test DynamicData.ReactiveUI.Tests\DynamicData.ReactiveUI.Tests.csproj --configuration Release --no-build