mirror of
https://github.com/google/leveldb.git
synced 2024-11-24 04:12:14 +08:00
808e59ec6a
This CL fixes the following issues: * The Travis CI had the ctest invocation followed by a ";", so non-zero exit codes (indicating test failures) did not cause the build to fail. * The AppVeyor CI had the ctest invocation followed by a ";", causing an error on Windows, where "&" plays the role of ";" [1]. The Windows CI (AppVeyor) will still be red after this CL, as some of the tests are failing. However, this CL is a step forward, as it gets us from failing to start tests to running tests and recording success/error states. [1] https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490954(v=technet.10)#using-multiple-commands-and-conditional-processing-symbols ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=236765633
36 lines
991 B
YAML
36 lines
991 B
YAML
# Build matrix / environment variables are explained on:
|
|
# https://www.appveyor.com/docs/appveyor-yml/
|
|
# This file can be validated on: https://ci.appveyor.com/tools/validate-yaml
|
|
|
|
version: "{build}"
|
|
|
|
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
|
|
|
|
platform:
|
|
- x86
|
|
- x64
|
|
|
|
configuration:
|
|
- RelWithDebInfo
|
|
- Debug
|
|
|
|
build_script:
|
|
- git submodule update --init --recursive
|
|
- mkdir build
|
|
- cd build
|
|
- if "%platform%"=="x64" set CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64
|
|
- cmake --version
|
|
- cmake .. -G "%CMAKE_GENERATOR%"
|
|
-DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%"
|
|
- cmake --build . --config "%CONFIGURATION%"
|
|
- cd ..
|
|
|
|
test_script:
|
|
- cd build && ctest --verbose --build-config "%CONFIGURATION%" && cd ..
|