forked from DiligentGraphics/DiligentCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (45 loc) · 1.45 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
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 CMAKE_INSTALL_PREFIX=install
platform_name: Windows
# Win32/x64/Release
- platform: x64
configuration: Release
cmake_args: -D CMAKE_INSTALL_PREFIX=install
platform_name: Windows
# clone directory
clone_folder: c:\projects\DiligentCore
install:
# clone submodules
- git submodule update --init --recursive
- ps: .\BuildTools\Scripts\appveyor\install.ps1
before_build:
- 'cd %APPVEYOR_BUILD_FOLDER%\BuildTools\FormatValidation'
- validate_format_win.bat
- 'cd %APPVEYOR_BUILD_FOLDER%'
- echo %PLATFORM%
- echo.%cmake_args%
- cmake %cmake_args% -S . -B ./build -D DILIGENT_BUILD_CORE_TESTS=TRUE -D CMAKE_INSTALL_PREFIX=install -G "Visual Studio 16 2019" -A %PLATFORM%
build:
project: '%APPVEYOR_BUILD_FOLDER%\build\INSTALL.vcxproj'
verbosity: minimal
parallel: true
test_script:
- '%APPVEYOR_BUILD_FOLDER%\BuildTools\Scripts\appveyor\run_tests.bat %APPVEYOR_BUILD_FOLDER%\build %APPVEYOR_BUILD_FOLDER%\Tests\DiligentCoreTest\assets %APPVEYOR_BUILD_FOLDER%\Tests\DiligentCoreAPITest\assets'
after_test:
- 'cd %APPVEYOR_BUILD_FOLDER%\install'
- 7z a DiligentCore-"%platform_name%"-"%PLATFORM%"-"%CONFIGURATION%".zip .\* -xr!lib
artifacts:
- path: install\*.zip
name: artifacts-zip