1# Windows CI build via the Appveyor service
2
3version: '{build}'
4
5# branches to build
6branches:
7  only:
8    - master
9
10# scripts that are called at very beginning, before repo cloning
11init:
12  - git config --global core.autocrlf input
13
14# Build matrix variables -
15#   * environment
16#   * platform
17#   * configuration
18environment:
19  matrix:
20    - COMPILER: "Visual Studio 12 Win64"
21    - COMPILER: "Visual Studio 14 Win64"
22    - COMPILER: "Visual Studio 15 Win64"
23      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
24
25# build platform, i.e. x86, x64, Any CPU.
26platform:
27  - x86
28  - x64
29
30# build Configuration, i.e. Debug, Release, etc.
31configuration:
32  - Debug
33  - Release
34
35before_build:
36  - echo --------------------------------------------------------------------------------
37  - echo Appveyor environment info:
38  - echo COMPILER = %COMPILER%, CONFIGURATION = %CONFIGURATION%
39  - cmake -h
40
41build_script:
42  - echo --------------------------------------------------------------------------------
43  - echo Build tinyformat
44  - mkdir build
45  - cd build
46  - cmake -G "%COMPILER%" ..
47  - cmake --build . --config %CONFIGURATION%
48
49test_script:
50  # cmake testall target has problems finding the correct configuration, so use ctest directly.
51  - ctest -C %CONFIGURATION%
52
53