-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
88 lines (78 loc) · 2.5 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
# Reference: http://www.appveyor.com/docs/appveyor-yml
# Notes:
# - Indent each level of configuration with 2 spaces. Do not use tabs!
#---------------------------------#
# general configuration #
#---------------------------------#
version: $(smallversion).{build}
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
#Do not build if we change any of this files
skip_commits:
files:
- '**/*.md'
- '**/*.editorconfig'
- '**/*.png'
image: Visual Studio 2017
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
smallversion: 1.0
NugetKey:
secure: tYPzvkyTyLs55bvneeVzag8tp+r3qjFlRbLcllo4g/g96oMBBxhd+p3wzxZHUvgk
cache:
- packages -> **\packages.config
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-$(configuration)'
#---------------------------------#
# build configuration #
#---------------------------------#
configuration:
- Debug
- Release
platform: Any CPU
build:
parallel: true
verbosity: minimal
publish_nuget: true
before_build:
- nuget restore
after_build:
#ClientUpdater post build commands
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\TPL4Unity"
- ps: xcopy /s/y "$env:appveyor_build_folder\System.Threading\bin\$env:configuration\*.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\TPL4Unity"
#7zip everything
- ps: 7z a "$env:appveyor_build_folder\TPL4Unity-$env:configuration.zip" "$env:appveyor_build_folder\FinalFiles\$env:configuration\TPL4Unity"
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\TPL4Unity-$(configuration).zip
name: TPL4Unity-$(configuration).zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: GitHub
tag: $(appveyor_build_version)
release: TPL4Unity $(appveyor_build_version)
description: 'Build $(appveyor_build_version)'
artifact: TPL4Unity-$(configuration).zip
auth_token:
secure: zWJqDvz3LjR2J358JIJKICwghW/DWRzs73KWb3KApTLOreA4c8DN1tos+O3qBMR7
draft: false
force_update: true
on:
branch: master
- provider: NuGet
server: #NuGet.org
api_key:
secure: tYPzvkyTyLs55bvneeVzag8tp+r3qjFlRbLcllo4g/g96oMBBxhd+p3wzxZHUvgk
skip_symbols: false
symbol_server: #SymbolSource.org
artifact: /.*\.nupkg/