Merge branch 'scintilla-532'
[TortoiseGit.git] / appveyor.yml
blob1b4afad5ae434f609c687eb3397fe5f72a64622a
1 version: '{branch}.{build}'\r
2 skip_tags: true\r
3 skip_commits:\r
4   files:\r
5     - contrib/\r
6     - doc/\r
7     - '*.txt'\r
8     - '*.md'\r
9     - src/*.txt\r
10     - .gitlab-ci.yml\r
11     - .tgitconfig\r
12     - .mailmap\r
13     - '**/.editorconfig'\r
14     - '**/.clang.format'\r
15 image:\r
16   - Visual Studio 2019\r
17   - Visual Studio 2022\r
18 platform:\r
19   - Win32\r
20   - x64\r
21 configuration:\r
22   - Debug\r
23   - Release\r
24 matrix:\r
25   exclude:\r
26     - image: Visual Studio 2019\r
27       configuration: Debug\r
28     - image: Visual Studio 2019\r
29       platform: Win32\r
30       configuration: Release\r
31 init:\r
32 - git version\r
33 build_script:\r
34 - git submodule update --init -- ext/googletest ext/libgit2 ext/simpleini ext/tgit ext/zlib ext/pcre2 ext/json\r
35 - cd ext\libgit2\r
36 - git config --global user.email "dummy@example.com"\r
37 - git config --global user.name "Dummy Name"\r
38 - for %%G in (..\libgit2-*.patch) do ( type %%G | git am )\r
39 - git config --unset --global user.email\r
40 - git config --unset --global user.name\r
41 - cd ..\..\r
42 - msbuild "src\TortoiseGit.sln" /t:"test\UnitTests" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
43 - git config --global protocol.file.allow always\r
45 for:\r
46   -\r
47     matrix:\r
48       only:\r
49         - platform: x64\r
50           configuration: Release\r
51           image: Visual Studio 2019\r
52     test_script:\r
53     - set PATH="C:\Program Files\Git\mingw64\bin";%PATH%\r
54     - bin\Release64\bin\tests.exe\r
55     - msbuild "src\TortoiseGit.sln" /t:"GitWCRev" /t:"GitWCRevCom" /t:"TortoiseGitSetup\CustomActions" /t:"TortoiseGitSetup\RestartExplorer" /t:"ext\Crash-Server\CrashServerSDK\CrashHandler" /t:"ext\Crash-Server\CrashServerSDK\SendRpt" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
56     - git submodule update --init -- ext/apr ext/apr-util ext/editorconfig ext/lexilla ext/OGDF ext/hunspell\r
57     - msbuild "src\TortoiseGit.sln" /t:"TGitCache" /t:"TortoiseGitBlame" /t:"TortoiseGitIDiff" /t:"TortoiseGitMerge" /t:"TortoiseGitPlink" /t:"TortoiseGitProc" /t:"TortoiseGitStub" /t:"TortoiseGitUDiff" /t:"TortoiseShell" /t:"SshAskPass" /t:"tgittouch" /t:"GitWCRev" /t:"GitWCRevCom" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
58   -\r
59     matrix:\r
60       only:\r
61         - platform: Win32\r
62           configuration: Debug\r
63           image: Visual Studio 2022\r
64     test_script:\r
65     - set PATH="C:\Program Files\Git\mingw64\bin";%PATH%\r
66     - bin\Debug\bin\tests.exe\r
67     - reg add HKCU\Software\TortoiseGit /v CygwinHack /t REG_DWORD /f /d 1\r
68     - reg add HKCU\Software\TortoiseGit /v MSysGit /t REG_SZ /f /d "c:\cygwin\bin"\r
69     - set HOME=%USERPROFILE%\r
70     - c:\cygwin\bin\git version\r
71     - c:\cygwin\bin\git config --global --add safe.directory '*'\r
72     - bin\Debug\bin\tests.exe\r
73     - reg delete HKCU\Software\TortoiseGit /v CygwinHack /f\r
74     - reg delete HKCU\Software\TortoiseGit /v MSysGit /f\r
75     - reg add HKCU\Software\TortoiseGit /v Msys2Hack /t REG_DWORD /f /d 1\r
76     - reg add HKCU\Software\TortoiseGit /v MSysGit /t REG_SZ /f /d "c:\msys64\usr\bin"\r
77     - c:\msys64\usr\bin\git version\r
78     - set PATH="c:\msys64\usr\bin";%PATH%\r
79     - bin\Debug\bin\tests.exe\r
80     - reg delete HKCU\Software\TortoiseGit /v Msys2Hack /f\r
81     - reg delete HKCU\Software\TortoiseGit /v MSysGit /f\r
82   -\r
83     matrix:\r
84       only:\r
85         - platform: x64\r
86           configuration: Debug\r
87           image: Visual Studio 2022\r
88     test_script:\r
89     - set PATH="C:\Program Files\Git\mingw64\bin";%PATH%\r
90     - bin\Debug64\bin\tests.exe\r
91     - reg add HKCU\Software\TortoiseGit /v CygwinHack /t REG_DWORD /f /d 1\r
92     - reg add HKCU\Software\TortoiseGit /v MSysGit /t REG_SZ /f /d "c:\cygwin\bin"\r
93     - set HOME=%USERPROFILE%\r
94     - c:\cygwin\bin\git version\r
95     - c:\cygwin\bin\git config --global --add safe.directory '*'\r
96     - bin\Debug64\bin\tests.exe\r
97     - reg delete HKCU\Software\TortoiseGit /v CygwinHack /f\r
98     - reg delete HKCU\Software\TortoiseGit /v MSysGit /f\r
99     - reg add HKCU\Software\TortoiseGit /v Msys2Hack /t REG_DWORD /f /d 1\r
100     - reg add HKCU\Software\TortoiseGit /v MSysGit /t REG_SZ /f /d "c:\msys64\usr\bin"\r
101     - c:\msys64\usr\bin\git version\r
102     - set PATH="c:\msys64\usr\bin";%PATH%\r
103     - bin\Debug64\bin\tests.exe\r
104     - reg delete HKCU\Software\TortoiseGit /v Msys2Hack /f\r
105     - reg delete HKCU\Software\TortoiseGit /v MSysGit /f\r
106   -\r
107     matrix:\r
108       only:\r
109         - platform: Win32\r
110           configuration: Release\r
111           image: Visual Studio 2022\r
112     test_script:\r
113     - set PATH="C:\Program Files\Git\mingw64\bin";%PATH%\r
114     - bin\Release\bin\tests.exe\r
115     - msbuild "src\TortoiseGit.sln" /t:"GitWCRev" /t:"GitWCRevCom" /t:"TortoiseGitSetup\CustomActions" /t:"TortoiseGitSetup\RestartExplorer" /t:"ext\Crash-Server\CrashServerSDK\CrashHandler" /t:"ext\Crash-Server\CrashServerSDK\SendRpt" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
116     - git submodule update --init -- ext/apr ext/apr-util ext/editorconfig ext/lexilla ext/OGDF ext/hunspell\r
117     - msbuild "src\TortoiseGit.sln" /t:"TGitCache" /t:"TortoiseGitBlame" /t:"TortoiseGitIDiff" /t:"TortoiseGitMerge" /t:"TortoiseGitPlink" /t:"TortoiseGitProc" /t:"TortoiseGitStub" /t:"TortoiseGitUDiff" /t:"TortoiseShell" /t:"SshAskPass" /t:"tgittouch" /t:"GitWCRev" /t:"GitWCRevCom" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
118   -\r
119     matrix:\r
120       only:\r
121         - platform: x64\r
122           configuration: Release\r
123           image: Visual Studio 2022\r
124     test_script:\r
125     - set PATH="C:\Program Files\Git\mingw64\bin";%PATH%\r
126     - bin\Release64\bin\tests.exe\r
127     - msbuild "src\TortoiseGit.sln" /t:"GitWCRev" /t:"GitWCRevCom" /t:"TortoiseGitSetup\CustomActions" /t:"TortoiseGitSetup\CustomActions11" /t:"TortoiseGitSetup\RestartExplorer" /t:"ext\Crash-Server\CrashServerSDK\CrashHandler" /t:"ext\Crash-Server\CrashServerSDK\SendRpt" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
128     - git submodule update --init -- ext/apr ext/apr-util ext/editorconfig ext/lexilla ext/OGDF ext/hunspell\r
129     - msbuild "src\TortoiseGit.sln" /t:"TGitCache" /t:"TortoiseGitBlame" /t:"TortoiseGitIDiff" /t:"TortoiseGitMerge" /t:"TortoiseGitPlink" /t:"TortoiseGitProc" /t:"TortoiseGitStub" /t:"TortoiseGitUDiff" /t:"TortoiseShell" /t:"SshAskPass" /t:"tgittouch" /t:"GitWCRev" /t:"GitWCRevCom" /m /verbosity:minimal /p:Configuration=%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
130     # check for missing pot entries\r
131     - msbuild "src\TortoiseGit.sln" /m /verbosity:minimal /p:Configuration=TortoisePot-%CONFIGURATION% /p:Platform=%PLATFORM% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
132     - git status\r
133     - git diff-index --quiet HEAD -- Languages/Tortoise.pot\r