]> git.sesse.net Git - stockfish/commitdiff
Add AppVeyor integration
authorMarco Costalba <mcostalba@gmail.com>
Mon, 10 Oct 2016 12:21:57 +0000 (14:21 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Mon, 10 Oct 2016 14:29:29 +0000 (16:29 +0200)
It is like Trevis CI but for Windows platform.

Currently just compile builds, wthouth benching
the resulting executable.

No functional change.

Readme.md
appveyor.yml [new file with mode: 0644]

index a85e049ae2a0ae7af08f6c10e49e15048b587de2..29ebf59b03dc9ac880f55e0998719ebf7b3ab0bf 100644 (file)
--- a/Readme.md
+++ b/Readme.md
@@ -1,6 +1,7 @@
 ### Overview
 
 [![Build Status](https://travis-ci.org/official-stockfish/Stockfish.svg?branch=master)](https://travis-ci.org/official-stockfish/Stockfish)
+[![Build Status](https://ci.appveyor.com/api/projects/status/github/official-stockfish/Stockfish?svg=true)](https://ci.appveyor.com/project/mcostalba/stockfish)
 
 Stockfish is a free UCI chess engine derived from Glaurung 2.1. It is
 not a complete chess program and requires some UCI-compatible GUI
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644 (file)
index 0000000..97a97b5
--- /dev/null
@@ -0,0 +1,36 @@
+version: 1.0.{build}
+clone_depth: 5
+
+branches:
+  only:
+    - master
+    - appveyor
+
+# Operating system (build VM template)
+os: Visual Studio 2015
+
+platform:
+  - x86
+  - x64
+
+# Build configuration, i.e. Debug, Release, etc.
+configuration:
+  - Debug
+  - Release
+
+# Scripts that are called at very beginning, before repo cloning
+init:
+  - cmd: cmake --version
+  - cmd: msbuild /version
+
+# Scripts to run before build
+before_build:
+  - cmd: cd src
+  - cmd: echo project (Stockfish) >> CMakeLists.txt
+  - cmd: echo add_executable(stockfish benchmark.cpp bitbase.cpp bitboard.cpp endgame.cpp evaluate.cpp >> CMakeLists.txt
+  - cmd: echo main.cpp material.cpp misc.cpp movegen.cpp movepick.cpp pawns.cpp position.cpp psqt.cpp >> CMakeLists.txt
+  - cmd: echo search.cpp thread.cpp timeman.cpp tt.cpp uci.cpp ucioption.cpp syzygy/tbprobe.cpp) >> CMakeLists.txt
+
+build_script:
+  - cmake -G "Visual Studio 14 2015 Win64" .
+  - cmake --build .