blob: 07e269bedff34a8d8996ac210bcef4975913c70c [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
43 - cmake .. -DCMAKE_INSTALL_PREFIX=install
44 - 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
63 include\glslang\*
64 include\SPIRV\*
65 lib\glslang%SUFFIX%.lib
66 lib\HLSL%SUFFIX%.lib
67 lib\OGLCompiler%SUFFIX%.lib
68 lib\OSDependent%SUFFIX%.lib
69 lib\SPIRV%SUFFIX%.lib
70 lib\SPVRemapper%SUFFIX%.lib
71 lib\SPIRV-Tools%SUFFIX%.lib
72 lib\SPIRV-Tools-opt%SUFFIX%.lib
73
74artifacts:
75 - path: build\install\*.zip
76 name: artifacts-zip
77
78deploy:
79 - provider: GitHub
80 auth_token:
81 secure: YglcSYdl0TylEa59H4K6lylBEDr586NAt2EMgZquSo+iuPrwgZQuJLPCoihSm9y6
82 release: master-tot
83 description: "Continuous build of the latest master branch by Appveyor and Travis CI"
84 artifact: artifacts-zip
85 draft: false
86 prerelease: false
87 force_update: true
88 on:
89 branch: master
90 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013