enh: Configure and install pkg-config .pc file
[platform/upstream/gflags.git] / appveyor.yml
1 # Configuration for continuous integration service at appveyor.com
2
3 shallow_clone: true
4
5 # Operating system (build VM template)
6 os: Visual Studio 2015
7
8 # scripts that are called at very beginning, before repo cloning
9 init:
10
11 # clone directory
12 clone_folder: c:\projects\gflags
13
14 matrix:
15   fast_finish: true
16
17 platform:
18   - Win32
19
20 configuration:
21   - Debug
22   - Release
23
24 install:
25   # show all available env vars
26   - set
27   - echo cmake on AppVeyor, %configuration%-%platform%
28   - cmake -version
29   - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
30
31 build_script:
32   - cd c:\projects\gflags
33   - mkdir out && cd out
34   - cmake -G "Visual Studio 14 2015"
35     -D CMAKE_BUILD_TYPE=%configuration%
36     -D GFLAGS_BUILD_TESTING=ON
37     -D GFLAGS_BUILD_SHARED_LIBS=ON
38     -D GFLAGS_BUILD_STATIC_LIBS=ON
39     ..
40   - cmake --build . --config %configuration%
41
42 test_script:
43   - ctest -C %configuration%