Add Appveyor configuration for Windows build.
authorLei Zhang <antiagainst@google.com>
Tue, 17 May 2016 13:02:45 +0000 (09:02 -0400)
committerLei Zhang <antiagainst@google.com>
Tue, 17 May 2016 13:48:48 +0000 (09:48 -0400)
.appveyor.yml [new file with mode: 0644]
README.md

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..672761e
--- /dev/null
@@ -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
index a798b6c..73f28d4 100644 (file)
--- 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