Merge pull request #180 from digitalcircuit/ircv3-expanded-caps
[quassel.git] / appveyor.yml
1 version: '{build}'
2 build_script:
3 - ps: |
4     if ( !(Test-Path "$env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1"))
5     {
6         mkdir $env:APPVEYOR_BUILD_FOLDER\work\
7         Start-FileDownload https://raw.githubusercontent.com/TheOneRing/appVeyorHelp/master/appveyorHelp.psm1 -FileName $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
8     }
9     $ErrorActionPreference="Stop"
10
11     Import-Module $env:APPVEYOR_BUILD_FOLDER\work\appveyorHelp.psm1
12
13     Init @("ninja", "png2ico", "nsis", "7zip.commandline") ([ordered]@{"git://anongit.kde.org/extra-cmake-modules.git" = @{"branch" = "master"};
14                                  "https://github.com/Snorenotify/SnoreGrowl.git" = @{"branch" = "v0.4.0"; "buildType" = "Release"};
15                                  "git://anongit.kde.org/snorenotify.git" = @{"branch" = "v0.7.0"; "buildType" = "Release"}})
16
17
18     mkdir -Force $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
19     cd $env:APPVEYOR_BUILD_FOLDER\work\build\$env:APPVEYOR_PROJECT_NAME
20     LogExec cmake -G"Ninja" $env:APPVEYOR_BUILD_FOLDER -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_ROOT" -DUSE_QT5=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DBus=ON -DWITH_WEBKIT=OFF
21     CmakeImageInstall
22
23     $imageDir = CreateDeployImage @(
24                             # whitelist
25                             #quassel
26                             "quassel.*",
27                             #
28                             #gccruntime",
29                             "bin\\libgomp.*\.dll",
30                             "bin\\libgcc_s_.*\.dll",
31                             "bin\\libwinpthread.*\.dll",
32                             "bin\\libstdc.*\.dll",
33                             #
34                             #snore
35                             "bin\\.*snore.*\.dll",
36                             "lib\\plugins\\libsnore.*\\libsnore_backend.*\.dll",
37                             "lib\\plugins\\libsnore.*\\libsnore_settings_backend.*\.dll",
38                             "lib\\plugins\\libsnore.*\\libsnore_secondarybackend.*\.dll", "lib\\plugins\\libsnore.*\\libsnore_settings_secondarybackend.*\.dll", "bin\\SnoreToast\.exe",
39                             #
40                             #Growl
41                             "bin\\.*snoregrowl.*\.dll",
42                             #
43                             #ssl
44                             ".*\\libeay32\.dll",
45                             ".*\\ssleay32\.dll",
46                             #
47                             #icu
48                             "bin\\icuin\d+\.dll",
49                             "bin\\icuuc\d+\.dll",
50                             "bin\\icudt\d+\.dll",
51                             #
52                             #qt
53                             "bin\\Qt5Core\.dll",
54                             "bin\\Qt5Declarative\.dll",
55                             "bin\\Qt5Gui\.dll",
56                             "bin\\Qt5Network\.dll",
57                             "bin\\Qt5Opengl\.dll",
58                             "bin\\Qt5Multimedia\.dll",
59                             "bin\\Qt5MultimediaWidgets\.dll",
60                             "bin\\Qt5Qml\.dll",
61                             "bin\\Qt5Quick\.dll",
62                             "bin\\Qt5Script\.dll",
63                             "bin\\Qt5Sql\.dll",
64                             "bin\\Qt5Widgets\.dll",
65                             "bin\\Qt5XmlPatterns\.dll",
66                             "bin\\.*libglesv2\.dll",
67                             "bin\\.*libEGL\.dll",
68                             "qml\\.*",
69                             #bin\\QtXml\.dll
70                             #
71                             "plugins\\imageformats\\(?!.*d\.dll).*\.dll$",
72                             "plugins\\sqldrivers\\qsqlite(?!.*d\.dll).*\.dll$",
73                             "plugins\\codecs\\(?!.*d\.dll).*\.dll$",
74                             "plugins\\platforms\\qwindows(?!.*d\.dll).*\.dll$",
75                             #
76                             #
77                             #zlib
78                             "bin\\libz.dll",
79                             #
80                             #qca
81                             "bin\\libqca.*\.dll",
82                             "lib\\qca-qt5\\crypto\\.*",
83                             "certs\\.*",
84                             #
85                             #phonon
86                             "bin\\libphonon.*\.dll",
87                             "bin\\phonon.*\.dll",
88                             "bin\\libphononexperimental.*\.dll",
89                             "bin\\phonon_backend\\.*",
90                             "plugins\\phonon_backend\\.*",
91                             "plugins\\phonon4qt5_backend\\.*") @(
92                             #blacklist
93                             "include",
94                             ".*\.h",
95                             "lib\\plugins\\libsnore.*\\libsnore_backend_freedesktop\.dll",
96                             ".*\.pdb",
97                             ".*plugind\.dll"
98                             )
99
100     mv "$imageDir\bin\*" "$imageDir\"
101     #mv "$imageDir\lib\qca-qt5\crypto" "$imageDir\crypto"
102     mv "$imageDir\qml\*" "$imageDir"
103     mv "$imageDir\plugins\*" "$imageDir"
104     if(Test-Path "$imageDir\lib\plugins")
105     {
106         mv "$imageDir\lib\plugins\*" "$imageDir"
107     }
108     DeleteEmptyFodlers $imageDir
109     7ZipDeployImage
110     NsisDeployImage $env:APPVEYOR_BUILD_FOLDER\scripts\build\NullsoftInstaller.nsi
111
112 environment:
113     QT_VER: 5.5
114
115     matrix:
116     #msvc
117     - COMPILER: msvc2013_64
118     - COMPILER: msvc2013
119     #mingw
120     - COMPILER: mingw492_32
121
122 test: off
123
124 cache:
125     - work\install -> appveyor.yml
126     - C:\ProgramData\chocolatey\bin -> appveyor.yml
127     - C:\ProgramData\chocolatey\lib -> appveyor.yml
128     - work\appveyorHelp.psm1 -> appveyor.yml