diff options
author | Dreamer <dreamer.dead@gmail.com> | 2016-08-02 14:00:16 +0300 |
---|---|---|
committer | Andreas Schuh <andreas.schuh.84@gmail.com> | 2016-08-02 12:00:16 +0100 |
commit | c713d2e789f77fa63fe2abeae2371c16f69d8782 (patch) | |
tree | e1e4230e7a2951c12a0c6a82148975f8c27f11f4 /appveyor.yml | |
parent | b16653edf0446833e029961ec9f1e3215246d798 (diff) | |
download | gflags-c713d2e789f77fa63fe2abeae2371c16f69d8782.tar.gz gflags-c713d2e789f77fa63fe2abeae2371c16f69d8782.tar.bz2 gflags-c713d2e789f77fa63fe2abeae2371c16f69d8782.zip |
test: Run AppVeyor build via cmake --build and run tests. (#162)
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml index 758eb5c..f382397 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,10 +14,17 @@ 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 + - echo cmake on AppVeyor, %configuration%-%platform% - cmake -version - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" @@ -25,7 +32,12 @@ build_script: - cd c:\projects\gflags - mkdir out && cd out - cmake -G "Visual Studio 14 2015" - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=%configuration% -DGFLAGS_BUILD_TESTING=True .. - - msbuild gflags.sln /toolsversion:14.0 /p:PlatformToolset=v140 + - 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% |