From c7551e1f0784f7c5096bf34bb005eee1491ab47f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 17 May 2016 09:02:45 -0400 Subject: [PATCH] Add Appveyor configuration for Windows build. --- .appveyor.yml | 39 +++++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 40 insertions(+) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..672761e --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,39 @@ +# Windows Build Configuration for AppVeyor +# http://www.appveyor.com/docs/appveyor-yml + +# version format +version: "{build}" + +os: Visual Studio 2015 + +platform: + - Any CPU + +configuration: + - Debug + - Release + +branches: + only: + - master + +clone_depth: 5 + +matrix: + fast_finish: true # Show final status immediately if a test fails. + +# scripts that run after cloning repository +install: + - git clone https://github.com/google/googletest.git external/googletest + +build: + parallel: true # enable MSBuild parallel builds + verbosity: minimal + +build_script: + - mkdir build && cd build + - cmake .. + - cmake --build . --config %CONFIGURATION% + +test_script: + - ctest -C %CONFIGURATION% --output-on-failure diff --git a/README.md b/README.md index a798b6c..73f28d4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # SPIR-V Tools [![Build Status](https://travis-ci.org/KhronosGroup/SPIRV-Tools.svg?branch=master)](https://travis-ci.org/KhronosGroup/SPIRV-Tools) +[![Build status](https://ci.appveyor.com/api/projects/status/p5d60n0mhfimm6i5/branch/master?svg=true)](https://ci.appveyor.com/project/antiagainst/spirv-tools/branch/master) ## Overview