-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
81 lines (72 loc) · 2.76 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
# 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'
image: Visual Studio 2017
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
smallversion: 0.13.50
ZIPPASSWORD:
secure: aYtowPY3EEDAWEnow3/CajwQYL9PtdXpVdSqhC3f5X4=
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
before_build:
- ps: 7z e "$env:appveyor_build_folder\External\KSPLibraries\KSPLibraries.7z" -p"$env:ZIPPASSWORD" -o"$env:appveyor_build_folder\External\KSPLibraries"
- nuget restore
build:
parallel: true
verbosity: minimal
after_build:
#Client post build commands
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\LmpKisPlugin\GameData\LunaMultiplayer\Plugins"
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\LmpKisPlugin\GameData\LunaMultiplayer\PartSync"
- ps: xcopy /y "$env:appveyor_build_folder\LmpKisPlugin\bin\$env:configuration\LmpKisPlugin.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LmpKisPlugin\GameData\LunaMultiplayer\Plugins"
- ps: xcopy /y /s "$env:appveyor_build_folder\LmpKisPlugin\XML\*.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LmpKisPlugin\GameData\LunaMultiplayer\PartSync"
#7zip everything
- ps: 7z a "$env:appveyor_build_folder\LmpKisPlugin-$env:configuration.zip" "$env:appveyor_build_folder\FinalFiles\$env:configuration\LmpKisPlugin"
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\LmpKisPlugin-$(configuration).zip
name: LmpKisPlugin-$(configuration).zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: GitHub
tag: $(smallversion)-Draft
release: Lmp-Kis plugin $(smallversion)-Draft
description: 'Build $(appveyor_build_version)'
artifact: LmpKisPlugin-$(configuration).zip
auth_token:
secure: zWJqDvz3LjR2J358JIJKICwghW/DWRzs73KWb3KApTLOreA4c8DN1tos+O3qBMR7
draft: true
force_update: true
on:
branch: master