Make the example hook script work with TortoiseGit
[TortoiseGit.git] / appveyor.yml
blobc5b316f7bb21be4bd11d6cea17257cdcf2a2608e
1 version: '{branch}.{build}'\r
2 skip_tags: true\r
3 image: Visual Studio 2017\r
4 init:\r
5 - git version\r
6 build_script:\r
7 - git submodule update --init -- ext/googletest ext/libgit2 ext/simpleini ext/tgit ext/zlib\r
8 - cd ext\libgit2\r
9 - git config --global user.email "dummy@example.com"\r
10 - git config --global user.name "Dummy Name"\r
11 - for %%G in (..\libgit2-*.patch) do ( type %%G | git am )\r
12 - git config --unset --global user.email\r
13 - git config --unset --global user.name\r
14 - cd ..\..\r
15 - msbuild "src\TortoiseGit.sln" /t:"test\UnitTests" /m /verbosity:minimal /p:Configuration=Debug /p:PlatformToolset=v141 /p:Platform=x64 /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
16 - msbuild "src\TortoiseGit.sln" /t:"test\UnitTests" /m /verbosity:minimal /p:Configuration=Debug /p:PlatformToolset=v141 /p:Platform=Win32 /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
17 test_script:\r
18 - bin\Debug\bin\tests.exe\r
19 - bin\Debug64\bin\tests.exe\r
20 - reg add HKCU\Software\TortoiseGit /v CygwinHack /t REG_DWORD /f /d 1\r
21 - reg add HKCU\Software\TortoiseGit /v MSysGit /t REG_SZ /f /d "c:\cygwin\bin"\r
22 - set HOME=%USERPROFILE%\r
23 - c:\cygwin\bin\git version\r
24 - bin\Debug\bin\tests.exe\r
25 - bin\Debug64\bin\tests.exe\r
26 - reg delete HKCU\Software\TortoiseGit /v CygwinHack /f\r
27 - reg delete HKCU\Software\TortoiseGit /v MSysGit /f\r
28 - 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=Release /p:Platform=x64 /maxcpucount /p:PlatformToolset=v141 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r
29 - git submodule update --init -- ext/apr ext/apr-util ext/editorconfig ext/OGDF ext/pcre\r
30 - 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=Debug /p:Platform=x64 /maxcpucount /p:PlatformToolset=v141 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"\r