-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
89 lines (76 loc) · 3.23 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
# 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:
- '**/*.gif'
- '**/*.md'
- '**/*.editorconfig'
image: Visual Studio 2017
#---------------------------------#
# environment configuration #
#---------------------------------#
environment:
smallversion: 1.4.0
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\GameData\TiltEm\Plugins"
- ps: mkdir "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm\Localization"
- ps: xcopy /y "$env:appveyor_build_folder\TiltEm\bin\$env:configuration\TiltEm.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm\Plugins"
- ps: xcopy /y "$env:appveyor_build_folder\TiltEm\bin\$env:configuration\0Harmony.dll" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm\Plugins"
- ps: xcopy /y "$env:appveyor_build_folder\TiltEmKopernicus\bin\$env:configuration\TiltEmKopernicus.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm\Plugins"
- ps: xcopy /y /s "$env:appveyor_build_folder\Resources\*.*" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm"
# - ps: if ($env:configuration -like "Debug") { xcopy /y "$env:appveyor_build_folder\TiltEm\TiltEmButton.png" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData\TiltEm" }
#7zip everything
- ps: 7z a "$env:appveyor_build_folder\TiltEm-$env:smallversion-$env:configuration.zip" "$env:appveyor_build_folder\FinalFiles\$env:configuration\GameData"
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: .\TiltEm-$(smallversion)-$(configuration).zip
name: TiltEm-$(smallversion)-$(configuration).zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: GitHub
tag: $(smallversion)-Draft
release: TiltEm $(smallversion)-Draft
description: 'Build $(appveyor_build_version)'
artifact: TiltEm-$(smallversion)-$(configuration).zip
auth_token:
secure: zWJqDvz3LjR2J358JIJKICwghW/DWRzs73KWb3KApTLOreA4c8DN1tos+O3qBMR7
draft: true
force_update: true
on:
branch: master