-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
73 lines (63 loc) · 1.58 KB
/
appveyor.yml
File metadata and controls
73 lines (63 loc) · 1.58 KB
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
# common configuration for ALL branches
environment:
version_number: '1.0.0'
slacktalk_tests_access_token:
secure: E5hvevUqOQ4i+0cnP0GYPHBzCk9qdnEg9n1BVCrDawSm0HhKTyHZn0bmUW4DeLX3KBwrYpHZskx0LggySoEvow==
version: '$(version_number)-beta005'
# use VS2017
image: Visual Studio 2017
# Pull Requests do not increment build number
pull_requests:
do_not_increment_build_number: true
# branches whitelist
branches:
only:
- develop
- master
# Do not publish NuGet package artifacts to account/project feeds on Pull Requests
nuget:
disable_publish_on_pr: true
# tests
test_script:
- cmd: cd tests
- cmd: cd SlackTalk.Tests
- cmd: dotnet restore
- cmd: dotnet test -c Release
# patch version for .NET Core
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '$(version_number)'
file_version: '$(version_number)'
informational_version: '{version}'
# start to override common configuration
for:
# override settings for `develop` branch
-
branches:
only:
- develop
# use unique version when running tests from develop
version: '$(version_number)-develop{build}'
# no builds on develop, only tests
build: off
# override settings for `master` branch
-
branches:
only:
- master
build_script:
- ps: .\build.ps1
artifacts:
- path: .\artifacts\**\*.nupkg
name: NuGet
deploy:
# deploy to MyGet on master commit
- provider: NuGet
api_key:
secure: Eg0KDgCo29hYMHnywQRkdU/4r8PdKaGH4LNYAIVBjCc6lrQD1kOrbk8tYMBa41Ur
skip_symbols: true
on:
branch: master