forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
47 lines (41 loc) · 1.33 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
version: "{build}"
clone_folder: C:\Projects\MaterialX
build:
parallel: true
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
GENERATOR: Visual Studio 14 2015
TOOLSET_NAME: VS2015
ARCH: Win32
PYTHON: C:\Python27
PYTHON_NAME: Python27
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: Visual Studio 15 2017
TOOLSET_NAME: VS2017
ARCH: x64
PYTHON: C:\Python37-x64
PYTHON_NAME: Python37
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: Visual Studio 16 2019
TOOLSET_NAME: VS2019
ARCH: x64
PYTHON: C:\Python38-x64
PYTHON_NAME: Python38
configuration:
- Release
install:
- set PATH=%PYTHON%;%PATH%
- git submodule update --init --recursive
build_script:
- mkdir build
- cd build
- cmake -DMATERIALX_BUILD_PYTHON=ON -DMATERIALX_BUILD_VIEWER=ON -DMATERIALX_TEST_RENDER=OFF -DMATERIALX_WARNINGS_AS_ERRORS=ON -G "%GENERATOR%" -A "%ARCH%" ..
- cmake --build . --target install --config %CONFIGURATION%
- ctest -VV --output-on-failure --build-config %CONFIGURATION%
- cmake -E chdir ../python/MaterialXTest python main.py
- cmake -E chdir ../python/MaterialXTest python genshader.py
artifacts:
- path: build/installed
name: MaterialX_Windows_%TOOLSET_NAME%_%ARCH%_%PYTHON_NAME%
type: zip