forked from MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (48 loc) · 2 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
image: Visual Studio 2017
configuration: AppVeyor
platform: Any CPU
skip_tags: true
environment:
mdix_version: 2.6.0
mdix_mahapps_version: 0.1.0
mdix_colors_version: 1.2.0
assembly_info:
patch: false
before_build:
- ps: .paket\paket.exe restore
build_script:
- ps: >-
msbuild MaterialDesignToolkit.Wpf.sln /property:Configuration=AppVeyor /property:MDIX_CORE_VERSION=$env:mdix_version.$env:APPVEYOR_BUILD_NUMBER /property:MDIX_COLORS_VERSION=$env:mdix_colors_version.$env:APPVEYOR_BUILD_NUMBER /property:MDIX_MAHAPPS_VERSION=$env:mdix_mahapps_version.$env:APPVEYOR_BUILD_NUMBER /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- vstest.console /logger:Appveyor "MaterialDesignThemes.Wpf.Tests\bin\Release\MaterialDesignThemes.Wpf.Tests.dll"
artifacts:
- path: '**\MaterialDesign*.nupkg'
- path: Demo.*.zip
for:
-
branches:
only:
- master
version: $(mdix_version)-ci{build}
after_build:
- ps: >-
7z a Demo.$($env:mdix_version)-ci$($env:APPVEYOR_BUILD_NUMBER).zip MainDemo.Wpf\bin\**\*.*
nuget pack MaterialDesignThemes.nuspec -Version $env:mdix_version-ci$($env:APPVEYOR_BUILD_NUMBER)
nuget pack MaterialDesignThemes.MahApps.nuspec -Version $env:mdix_mahapps_version-ci$($env:APPVEYOR_BUILD_NUMBER)
nuget pack MaterialDesignColors.nuspec -Version $env:mdix_colors_version-ci$($env:APPVEYOR_BUILD_NUMBER)
deploy:
- provider: NuGet
api_key:
secure: B+WIdbRYr/rJo1QMeDwNen2xcj4RTu1d8AZiA03kb8wsWZVQxt5OgsWRacmEjWRd
artifact: /MaterialDesignThemes\.[\d\.]+-ci\d+\.nupkg/
-
branches:
only:
- release
version: $(mdix_version).{build}
after_build:
- ps: >-
7z a Demo.$($env:mdix_version).zip MainDemo.Wpf\bin\**\*.*
nuget pack MaterialDesignThemes.nuspec -Version $env:mdix_version
nuget pack MaterialDesignThemes.MahApps.nuspec -Version $env:mdix_mahapps_version
nuget pack MaterialDesignColors.nuspec -Version $env:mdix_colors_version