-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
57 lines (45 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
version: 1.0.{build}
branches:
only:
- master
skip_tags: true
skip_commits:
files:
- README.md
max_jobs: 1
image: Visual Studio 2015
clone_folder: c:\projects\gibbed-masseffectandromeda
cache:
- packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'
- '%LocalAppData%\NuGet\v3-cache'
install:
- git submodule update --init --recursive
configuration:
- SaveEdit Packaging
- Debug
build:
project: Mass Effect Andromeda.sln
parallel: true
verbosity: minimal
before_build:
- nuget restore
- echo namespace Gibbed.MassEffectAndromeda.SaveEdit > projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo { >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo internal static class Version >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo { >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- if "%CONFIGURATION%"=="SaveEdit Packaging" echo public const string Configuration = null; >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" echo public const string Configuration = "%CONFIGURATION%"; >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo public const string Commit = "%APPVEYOR_REPO_COMMIT%"; >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo public const string Timestamp = "%APPVEYOR_REPO_COMMIT_TIMESTAMP%"; >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo } >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
- echo } >> projects/Gibbed.MassEffectAndromeda.SaveEdit/Version.cs
after_build:
- set TZ=GMT
- git log . > git-log.txt
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!bin/Test.exe -x!*/LICENSE.txt all_tools-%APPVEYOR_BUILD_VERSION%.zip ./LICENSE.txt ./README.txt git-log.txt bin/*.exe bin/*.dll bin/projects
- if NOT "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!bin/Test.exe -x!*/LICENSE.txt all_tools-%APPVEYOR_BUILD_VERSION%-with-symbols.zip ./LICENSE.txt ./README.txt git-log.txt bin/*.exe bin/*.dll bin/*.pdb bin/projects
- if "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!*/LICENSE.txt saveedit-%APPVEYOR_BUILD_VERSION%.zip ./LICENSE.txt ./README.txt ./git-log.txt ./bin_saveedit/*.exe
- if "%CONFIGURATION%"=="SaveEdit Packaging" 7z a -r -tzip -mx=9 -x!*/LICENSE.txt saveedit-%APPVEYOR_BUILD_VERSION%-with-symbols.zip ./LICENSE.txt ./README.txt ./git-log.txt ./bin_saveedit/*.exe ./bin_saveedit/*.pdb
artifacts:
- path: '*-*.zip'