-
Notifications
You must be signed in to change notification settings - Fork 335
/
appveyor.yml
57 lines (48 loc) · 2.01 KB
/
appveyor.yml
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
version: '2.5.{build}'
# branches to build
branches:
# whitelist
only:
- master
image:
- Visual Studio 2019
environment:
matrix:
# Win32/x64/Debug
- platform: x64
configuration: Debug
cmake_args: -D DILIGENT_BUILD_CORE_TESTS=TRUE -D DILIGENT_BUILD_TOOLS_TESTS=TRUE
platform_name: Windows
# Win32/x64/RelWithDebInfo
- platform: x64
configuration: RelWithDebInfo
cmake_args:
platform_name: Windows
# clone directory
clone_folder: c:\projects\diligentengine
install:
# clone submodules
- git submodule update --init --recursive
- ps: DiligentCore\BuildTools\Scripts\appveyor\install.ps1
before_build:
- 'cd %APPVEYOR_BUILD_FOLDER%\DiligentCore\BuildTools\FormatValidation'
- validate_format_win.bat
- 'cd %APPVEYOR_BUILD_FOLDER%\DiligentTools\BuildTools\FormatValidation'
- validate_format_win.bat
- 'cd %APPVEYOR_BUILD_FOLDER%\DiligentFX\BuildTools\FormatValidation'
- validate_format_win.bat
- 'cd %APPVEYOR_BUILD_FOLDER%\DiligentSamples\BuildTools\FormatValidation'
- validate_format_win.bat
- 'cd %APPVEYOR_BUILD_FOLDER%'
- echo %PLATFORM%
- echo.%cmake_args%
- cmake %cmake_args% -S . -B ./build -D DILIGENT_MSVC_COMPILE_OPTIONS="/WX" -D DILIGENT_MSVC_RELEASE_COMPILE_OPTIONS="/arch:AVX2" -G "Visual Studio 16 2019" -A %PLATFORM%
- nuget restore C:\projects\diligentengine\build\DiligentEngine.sln
build:
project: '%APPVEYOR_BUILD_FOLDER%\build\DiligentEngine.sln'
verbosity: minimal
parallel: true
test_script:
- 'if "%configuration%"=="Debug" (%APPVEYOR_BUILD_FOLDER%\DiligentCore\BuildTools\Scripts\appveyor\run_tests.bat %APPVEYOR_BUILD_FOLDER%\build\DiligentCore %APPVEYOR_BUILD_FOLDER%\DiligentCore\Tests\DiligentCoreTest\assets %APPVEYOR_BUILD_FOLDER%\DiligentCore\Tests\DiligentCoreAPITest\assets)'
- 'cd %APPVEYOR_BUILD_FOLDER%\DiligentTools\Tests\DiligentToolsTest\assets'
- 'if "%configuration%"=="Debug" (%APPVEYOR_BUILD_FOLDER%\DiligentTools\BuildTools\Scripts\appveyor\run_tests.bat %APPVEYOR_BUILD_FOLDER%\build\DiligentTools)'