summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2019-11-11 11:58:12 -0800
committerVictor Costan <pwnall@chromium.org>2019-11-11 12:05:59 -0800
commitf5acee902c4d2110f671455460172cb6d3bf5b73 (patch)
tree7ae2f41c3fd0bcfc3a43f2fa16ba60e71a1c6f78
parent26410cc4f8b5bfe666a94231733f212a2de0b5de (diff)
downloadsnappy-git-f5acee902c4d2110f671455460172cb6d3bf5b73.tar.gz
Move CI to Visual Studio 2019.
PiperOrigin-RevId: 279785698
-rw-r--r--.appveyor.yml17
1 files changed, 9 insertions, 8 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index c9ffc8f..441a2b6 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -8,9 +8,9 @@ environment:
matrix:
# AppVeyor currently has no custom job name feature.
# http://help.appveyor.com/discussions/questions/1623-can-i-provide-a-friendly-name-for-jobs
- - JOB: Visual Studio 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- CMAKE_GENERATOR: Visual Studio 15 2017
+ - JOB: Visual Studio 2019
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
+ CMAKE_GENERATOR: Visual Studio 16 2019
platform:
- x86
@@ -22,14 +22,15 @@ configuration:
build_script:
- git submodule update --init --recursive
- - mkdir out
- - cd out
- - if "%platform%"=="x64" set CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64
+ - mkdir build
+ - cd build
+ - if "%platform%"=="x86" (set CMAKE_GENERATOR_PLATFORM="Win32")
+ else (set CMAKE_GENERATOR_PLATFORM="%platform%")
- cmake --version
- - cmake .. -G "%CMAKE_GENERATOR%"
+ - cmake .. -G "%CMAKE_GENERATOR%" -A "%CMAKE_GENERATOR_PLATFORM%"
-DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%" -DSNAPPY_REQUIRE_AVX2=ON
- cmake --build . --config %CONFIGURATION%
- cd ..
test_script:
- - out\%CONFIGURATION%\snappy_unittest
+ - build\%CONFIGURATION%\snappy_unittest