summaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: f382397b35b95c3e61252814c4178f4fc9f925a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Configuration for continuous integration service at appveyor.com

shallow_clone: true

# Operating system (build VM template)
os: Visual Studio 2015

# scripts that are called at very beginning, before repo cloning
init:

# clone directory
clone_folder: c:\projects\gflags

matrix:
  fast_finish: true

platform:
  - Win32

configuration:
  - Debug
  - Release

install:
  # show all available env vars
  - set
  - echo cmake on AppVeyor, %configuration%-%platform%
  - cmake -version
  - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

build_script:
  - cd c:\projects\gflags
  - mkdir out && cd out
  - cmake -G "Visual Studio 14 2015"
    -DCMAKE_BUILD_TYPE=%configuration%
    -DGFLAGS_BUILD_TESTING=True
    ..
  - cmake --build . --config %configuration%

test_script:
  # strip_flags_binary test currently fails on AppVeyor in Debug configuration.
  - IF %configuration%==Debug SET GFLAGS_EXCLUDED_TESTS=strip_flags_binary
  - ctest -C %configuration% -E %GFLAGS_EXCLUDED_TESTS%