forked from DiligentGraphics/DiligentSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
66 lines (54 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
58
59
60
61
62
63
64
65
66
version: '2.4.{build}'
# branches to build
branches:
# whitelist
only:
- master
image:
- Visual Studio 2019
environment:
# use 'capture' to generate golden images and upload them as build artifacts
# use 'compare' to render and compare with the golden references
# use 'compare_update' to first compare with the references and then update them
test_mode: compare_update
matrix:
- platform: x64
configuration: Debug
platform_name: Windows
- platform: x64
configuration: Release
platform_name: Windows
# clone directory
clone_folder: c:\projects\DiligentSamples
install:
# clone submodules
- git submodule update --init --recursive
- git clone https://github.com/DiligentGraphics/DiligentCore.git ../DiligentCore --recursive
- git clone https://github.com/DiligentGraphics/DiligentTools.git ../DiligentTools --recursive
- git clone https://github.com/DiligentGraphics/DiligentFX.git ../DiligentFX --recursive
- ..\DiligentCore\BuildTools\Scripts\appveyor\install.bat
before_build:
- cd c:\projects\DiligentSamples\BuildTools\FormatValidation
- validate_format_win.bat
- cd c:\projects
- echo cmake_minimum_required(VERSION 3.6) > CMakeLists.txt
- echo Project(DiligentSamples_Test) >> CMakeLists.txt
- echo add_subdirectory(DiligentCore) >> CMakeLists.txt
- echo add_subdirectory(DiligentTools) >> CMakeLists.txt
- echo add_subdirectory(DiligentFX) >> CMakeLists.txt
- echo add_subdirectory(DiligentSamples) >> CMakeLists.txt
- echo %PLATFORM%
- cmake -S . -B ./build -G "Visual Studio 16 2019" -A %PLATFORM%
build:
project: c:\projects\build\DiligentSamples_Test.sln
verbosity: minimal
parallel: true
test_script:
- 'cd %APPVEYOR_BUILD_FOLDER%\Tests\GoldenImages'
- '%APPVEYOR_BUILD_FOLDER%\BuildTools\Scripts\appveyor\run_tests.bat c:\projects\build %test_mode%'
after_test:
- 'cd %APPVEYOR_BUILD_FOLDER%'
- 7z a golden_images-"%CONFIGURATION%".zip .\Tests\GoldenImages\*\*
artifacts:
- path: \golden_images-*.zip
name: golden_images-zip