Skip to content

Commit a9f8d0e

Browse files
committed
Add AppVeyor template (closes #58)
1 parent 92e287d commit a9f8d0e

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

appveyor.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: '{build}'
2+
branches:
3+
only:
4+
- master
5+
clone_folder: c:\projects\cmake-init
6+
image:
7+
- Visual Studio 2013
8+
- Visual Studio 2015
9+
- Visual Studio 2017
10+
configuration:
11+
- Release
12+
- Debug
13+
platform:
14+
- x64
15+
environment:
16+
matrix:
17+
- arch: Win64
18+
# - arch: #does not work, Release|x64 not a valid target
19+
matrix:
20+
fast_finish: true
21+
22+
# skip unsupported combinations
23+
init:
24+
- set arch=
25+
- if "%arch%"=="Win64" ( set arch= Win64)
26+
- echo %arch%
27+
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
28+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
29+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set generator="Visual Studio 14 2015%arch%" )
30+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set generator="Visual Studio 12 2013%arch%" )
31+
- echo %generator%
32+
33+
before_build:
34+
- cmd: >-
35+
mkdir build
36+
37+
cd build
38+
39+
cmake --version
40+
41+
cmake .. -G %generator%
42+
43+
build:
44+
project: c:\projects\glbinding\build\cmake-init.sln
45+
verbosity: minimal
46+
parallel: true
47+
only_commits:
48+
files:
49+
- CMakeLists.txt
50+
- appveyor.yml
51+
- sources/
52+
- cmake/

0 commit comments

Comments
 (0)