-
Notifications
You must be signed in to change notification settings - Fork 21
/
appveyor.yml
59 lines (44 loc) · 1.51 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
version: 1.9.7.{build}
image: Visual Studio 2017
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_tags: true
configuration:
- Debug
- Release
platform: Any CPU
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
cache: packages -> **\packages.config
before_build:
- |-
git submodule update --init --recursive
nuget restore
build_script:
- |-
msbuild -p:Configuration=%CONFIGURATION% -v:minimal "Dawn of Light.sln"
after_build:
- |-
7z a -tzip DOLServer_net45_%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\*
xcopy %APPVEYOR_BUILD_FOLDER%\sharedModules\SQLite\managedOnly\System.Data.SQLite.dll %APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\lib /y /s /q /i
del %APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\lib\x64 /F /S /Q
del %APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\lib\x86 /F /S /Q
7z a -tzip DOLServer_linux_net45_%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\*
7z a -tzip DOLServer_UnitTests_net45_%CONFIGURATION%.zip %APPVEYOR_BUILD_FOLDER%\build\Tests\%CONFIGURATION%\*
test_script:
- nunit3-console ".\build\Tests\%CONFIGURATION%\lib\Tests.dll" --where "namespace =~ 'DOL.Tests.Unit' and category != 'Explicit'" --result=myresults.xml;format=AppVeyor
artifacts:
- path: '*.zip'
name: Release
deploy:
- provider: GitHub
auth_token:
secure: 0D/RfRV/f6GheHsPAdrIJRQT4C3EGC064X1xbq4DSzQWK5s9J/7Et4HV/51ozVe3
artifact: Release