-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathappveyor.yml
49 lines (40 loc) · 1.41 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
version: '2.5.{build}'
# branches to build
branches:
# whitelist
only:
- master
image:
- Visual Studio 2019
environment:
matrix:
- platform: x64
configuration: Debug
platform_name: Windows
- platform: x64
configuration: Release
platform_name: Windows
# clone directory
clone_folder: c:\projects\DiligentTools
install:
# clone submodules
- git submodule update --init --recursive
- git clone https://github.com/DiligentGraphics/DiligentCore.git ../DiligentCore --recursive
- ps: ..\DiligentCore\BuildTools\Scripts\appveyor\install.ps1
before_build:
- cd c:\projects\DiligentTools\BuildTools\FormatValidation
- validate_format_win.bat
- cd c:\projects
- echo cmake_minimum_required(VERSION 3.6) > CMakeLists.txt
- echo Project(DiligentTools_Test) >> CMakeLists.txt
- echo add_subdirectory(DiligentCore) >> CMakeLists.txt
- echo add_subdirectory(DiligentTools) >> CMakeLists.txt
- echo %PLATFORM%
- cmake -S . -B ./build -D DILIGENT_BUILD_TOOLS_TESTS=TRUE -D DILIGENT_MSVC_COMPILE_OPTIONS="/WX" -D DILIGENT_MSVC_RELEASE_COMPILE_OPTIONS="/arch:AVX2" -G "Visual Studio 16 2019" -A %PLATFORM%
build:
project: c:\projects\build\DiligentTools_Test.sln
verbosity: minimal
parallel: true
test_script:
- 'cd %APPVEYOR_BUILD_FOLDER%\Tests\DiligentToolsTest\assets'
- '%APPVEYOR_BUILD_FOLDER%\BuildTools\Scripts\appveyor\run_tests.bat c:\projects\build\DiligentTools'