Welcome to mirror list, hosted at ThFree Co, Russian Federation.

appveyor.yml - github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d647cadf1b4cf89cce5ffec3b5b5ea3ab1351b61 (plain)
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
version: 0.2.{build}
pull_requests:
  do_not_increment_build_number: true
branches:
  only:
  - main
skip_tags: true

image: Visual Studio 2019 Preview

configuration: Release
platform: Any CPU

assembly_info:
  patch: true
  file: '**\AssemblyInfo.*'
  assembly_version: '{version}'
  assembly_file_version: '{version}'
  assembly_informational_version: '{version}'

install:
- if not exist gtk-sharp-2.12.42.msi appveyor DownloadFile https://dl.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.42.msi
- msiexec /i gtk-sharp-2.12.42.msi /qn /norestart
- if not exist gtk-sharp-2.99.3.msi appveyor DownloadFile https://download.gnome.org/binaries/win32/gtk-sharp/2.99/gtk-sharp-2.99.3.msi
- msiexec /i gtk-sharp-2.99.3.msi /qn /norestart

cache:
- gtk-sharp-2.12.42.msi
- gtk-sharp-2.99.3.msi
- packages

nuget:
  project_feed: true
  disable_publish_on_pr: true

build_script:
- nuget restore
- msbuild Xwt\Xwt.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.Gtk\Xwt.Gtk.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.Gtk.Windows\Xwt.Gtk.Windows.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.Gtk.Mac\Xwt.Gtk.Mac.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.Gtk\Xwt.Gtk3.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.WPF\Xwt.WPF.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Xwt.XamMac\Xwt.XamMac.csproj /target:Build /property:Configuration=Release;Platform=AnyCPU /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- mkdir nuget
- msbuild Xwt\Xwt.csproj -t:pack -p:Configuration=Release;Platform=AnyCPU -p:PackageVersion=%APPVEYOR_BUILD_VERSION% -p:IncludeSymbols=true -p:PackageOutputPath=..\nuget
- NuGet pack Xwt.Gtk\Xwt.Gtk.csproj -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -OutputDirectory nuget -Properties NoWarn=NU5125,NU5128
- NuGet pack Xwt.Gtk.Windows\Xwt.Gtk.Windows.csproj -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -OutputDirectory nuget -Properties NoWarn=NU5125,NU5128
- NuGet pack Xwt.Gtk.Mac\Xwt.Gtk.Mac.csproj -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -OutputDirectory nuget -Properties NoWarn=NU5125,NU5128
- NuGet pack Xwt.Gtk\Xwt.Gtk3.csproj -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -OutputDirectory nuget -Properties NoWarn=NU5125,NU5128
- NuGet pack Xwt.XamMac\Xwt.XamMac.csproj -Properties "Configuration=Release;Platform=AnyCPU" -Symbols -OutputDirectory nuget -Properties NoWarn=NU5125,NU5128
- msbuild Xwt.WPF\Xwt.WPF.csproj -t:pack -p:Configuration=Release;Platform=AnyCPU -p:PackageVersion=%APPVEYOR_BUILD_VERSION% -p:IncludeSymbols=true -p:PackageOutputPath=..\nuget
- dir nuget

test_script:
- ps: >-
    msbuild Xwt.sln /p:Configuration="Win-Debug" /p:Platform="Any Cpu" /verbosity:quiet

    $wc = New-Object 'System.Net.WebClient'

    nunit-console-x86.exe --framework=4.0 -domain=None -noshadow -nothread Testing\CoreTests\bin\Debug\CoreTests.dll

    $wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml))

    nunit-console-x86.exe --framework=4.0 -domain=None -noshadow -nothread Testing\bin\WpfTestRunner.exe

    $wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml))

    # $env:Path += ";C:\Program Files (x86)\GtkSharp\2.12\bin"

    # $env:GTK_BASEPATH = "C:\Program Files (x86)\GtkSharp\2.12\"

    # nunit-console-x86.exe --framework=4.0 -domain=None -noshadow -nothread Testing\bin\GtkTestRunner.exe

    # $wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestResult.xml))

artifacts:
- path: nuget\*.nupkg
  name: Xwt-$(APPVEYOR_BUILD_VERSION)
deploy:
- provider: NuGet
  api_key:
    secure: q/YdWU2pAOOVJ6CYJV7RGeb0SfbAg949QZrqW3WVbM0WiDSa6lc1P8RNa3WQgc08
  skip_symbols: true
  on:
    branch: main