forked from HearthSim/SabberStone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (50 loc) · 1.62 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
version: 2.1.0.{build}
image: Visual Studio 2017
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
environment:
TARGET_CONFIGURATION: Release
configuration: Release
pull_requests:
do_not_increment_build_number: true
# Can't change default email notifications without providing
# e-mail addresses.
cache:
- './packages'
# Only build when the following files were changed
only_commits:
files:
- '**/*.cs'
# All script lines are by default interpreted as batch
before_build:
- REM Restore packages for all projects within solution
- nuget.exe restore
build:
project: SabberStone.sln
parallel: true
verbosity: minimal
build_script:
- cmd: >-
dotnet build %APPVEYOR_BUILD_FOLDER%/SabberStoneCore -p:Version=%APPVEYOR_BUILD_VERSION% --configuration %TARGET_CONFIGURATION%
appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%/SabberStoneCore/bin/Release/SabberStoneCore.%APPVEYOR_BUILD_VERSION%.nupkg -FileName SabberStoneCore.%APPVEYOR_BUILD_VERSION%.nupkg -DeploymentName SabberStoneCore
# All script lines are by default interpreted as batch
test_script:
- REM Run the test project (.NET Core)
- cd ./SabberStoneCoreTest
- dotnet xunit -fxversion 2.0.5
deploy:
- provider: NuGet
api_key:
secure: qR9SWQUPkiYwFQKvljIajuoDvjS4rDAHkYVY1QaFP3yRqRoEp+LF/Um2v2Y4LqcN
artifact: /.*.nupkg/
artifacts:
- path: SabberStoneCore\bin\**\Release\**\SabberStoneCore.xml
name: SabberStoneCore doc
- path: SabberStoneCore\bin\**\Release\**\*.dll
name: SabberStoneCore libs