blob: 55ce6186903cd6c542c02c62e7eb7346cb55e380 [file] [log] [blame]
Lei Zhangf36d6e32016-05-10 09:55:05 -04001# Windows Build Configuration for AppVeyor
2# http://www.appveyor.com/docs/appveyor-yml
3
4# build version format
5version: "{build}"
6
7os: Visual Studio 2013
8
9platform:
Lei Zhanga7eab9b2017-11-08 17:26:51 -050010 - x64
Lei Zhangf36d6e32016-05-10 09:55:05 -040011
12configuration:
13 - Debug
14 - Release
15
16branches:
17 only:
18 - master
19
Lei Zhang9a65c6a2017-11-14 14:36:22 -050020# Travis advances the master-tot tag to current top of the tree after
21# each push into the master branch, because it relies on that tag to
22# upload build artifacts to the master-tot release. This will cause
23# double testing for each push on Appveyor: one for the push, one for
24# the tag advance. Disable testing tags.
25skip_tags: true
26
Lei Zhangf36d6e32016-05-10 09:55:05 -040027clone_depth: 5
28
29matrix:
30 fast_finish: true # Show final status immediately if a test fails.
31
32# scripts that run after cloning repository
33install:
34 - git clone https://github.com/google/googletest.git External/googletest
GregF87fd7422017-09-22 17:21:37 -060035 - C:/Python27/python.exe update_glslang_sources.py
Lei Zhangf36d6e32016-05-10 09:55:05 -040036
37build:
38 parallel: true # enable MSBuild parallel builds
39 verbosity: minimal
40
41build_script:
42 - mkdir build && cd build
Lei Zhangfb4165b2018-08-09 13:36:17 -040043 - cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=install ..
Lei Zhangf36d6e32016-05-10 09:55:05 -040044 - cmake --build . --config %CONFIGURATION% --target install
45
46test_script:
47 - ctest -C %CONFIGURATION% --output-on-failure
48 - cd ../Test && bash runtests
Lei Zhanga7eab9b2017-11-08 17:26:51 -050049 - cd ../build
50
51after_test:
52 # For debug build, the generated dll has a postfix "d" in its name.
53 - ps: >-
54 If ($env:configuration -Match "Debug") {
55 $env:SUFFIX="d"
56 } Else {
57 $env:SUFFIX=""
58 }
59 - cd install
60 # Zip all glslang artifacts for uploading and deploying
61 - 7z a glslang-master-windows-"%PLATFORM%"-"%CONFIGURATION%".zip
62 bin\glslangValidator.exe
Tim Jones9177e052018-06-27 17:31:19 +080063 bin\spirv-remap.exe
Lei Zhanga7eab9b2017-11-08 17:26:51 -050064 include\glslang\*
65 include\SPIRV\*
66 lib\glslang%SUFFIX%.lib
67 lib\HLSL%SUFFIX%.lib
68 lib\OGLCompiler%SUFFIX%.lib
69 lib\OSDependent%SUFFIX%.lib
70 lib\SPIRV%SUFFIX%.lib
71 lib\SPVRemapper%SUFFIX%.lib
72 lib\SPIRV-Tools%SUFFIX%.lib
73 lib\SPIRV-Tools-opt%SUFFIX%.lib
74
75artifacts:
76 - path: build\install\*.zip
77 name: artifacts-zip
78
79deploy:
80 - provider: GitHub
81 auth_token:
82 secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
83 release: master-tot
84 description: "Continuous build of the latest master branch by Appveyor and Travis CI"
85 artifact: artifacts-zip
86 draft: false
87 prerelease: false
88 force_update: true
89 on:
90 branch: master
91 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013