| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
version: '{branch}-{build}' |
| 13 |
|
| 14 |
|
| 15 |
branches: |
| 16 |
|
| 17 |
except: |
| 18 |
- gh-pages |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
image: |
| 25 |
- Visual Studio 2015 |
| 26 |
- Visual Studio 2017 |
| 27 |
|
| 28 |
|
| 29 |
configuration: |
| 30 |
- Debug |
| 31 |
- Release |
| 32 |
|
| 33 |
platform: |
| 34 |
- x86 |
| 35 |
- x64 |
| 36 |
|
| 37 |
|
| 38 |
clone_folder: c:\projects\platform_folders |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
shallow_clone: true |
| 43 |
|
| 44 |
|
| 45 |
clone_depth: 1 |
| 46 |
|
| 47 |
|
| 48 |
before_build: |
| 49 |
- cmd: mkdir "%APPVEYOR_BUILD_FOLDER%"\build |
| 50 |
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"\build |
| 51 |
|
| 52 |
- cmd: IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (IF "%PLATFORM%"=="x86" (cmake -G "Visual Studio 14 2015" ..) ELSE (cmake -G "Visual Studio 14 2015 Win64" -T host=x64 ..)) ELSE (IF "%PLATFORM%"=="x86" (cmake -G "Visual Studio 15 2017" ..) ELSE (cmake -G "Visual Studio 15 2017 Win64" -T host=x64 ..)) |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
build_script: |
| 57 |
- cmd: IF "%PLATFORM%"=="x86" (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\platform_folders.sln /p:Configuration="%CONFIGURATION%" /p:Platform="Win32" /v:minimal /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll") ELSE (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\platform_folders.sln /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /v:minimal /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll") |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
test_script: |
| 66 |
- cmd: IF "%PLATFORM%"=="x86" (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\RUN_TESTS.vcxproj /p:Configuration="%CONFIGURATION%" /p:Platform="Win32" /v:minimal /m) ELSE (MSBuild.exe "%APPVEYOR_BUILD_FOLDER%"\build\RUN_TESTS.vcxproj /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /v:minimal /m) |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
on_failure: |
| 74 |
- cmd: IF exist "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log (type "%APPVEYOR_BUILD_FOLDER%"\build\CMakeFiles\CMakeError.log) |
| 75 |
- cmd: IF exist "%APPVEYOR_BUILD_FOLDER%"\build\Testing\Temporary\LastTest.log (type "%APPVEYOR_BUILD_FOLDER%"\build\Testing\Temporary\LastTest.log) |