From e4de6ce087aaf72dfce7d8d252c3a82f18419cae Mon Sep 17 00:00:00 2001 From: costan Date: Thu, 27 Jul 2017 16:34:19 -0700 Subject: [PATCH] Small improvements to open source CI configuration. This CL fixes 64-bit Windows testing (), makes it possible to view the test output in the Travis / AppVeyor CI console while the test is running, and takes advantage of the new support for the .appveyor.yml file name to make the CI configuration less obtrusive. --- appveyor.yml => .appveyor.yml | 7 +++++-- .travis.yml | 14 ++++++++++---- 2 files changed, 15 insertions(+), 6 deletions(-) rename appveyor.yml => .appveyor.yml (82%) diff --git a/appveyor.yml b/.appveyor.yml similarity index 82% rename from appveyor.yml rename to .appveyor.yml index 886150f..f54dbfb 100644 --- a/appveyor.yml +++ b/.appveyor.yml @@ -30,9 +30,12 @@ build_script: - git submodule update --init --recursive - mkdir out - cd out + - if "%platform%"=="x64" set CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64 - cmake .. -G "%CMAKE_GENERATOR%" - -DCMAKE_CONFIGURATION_TYPES="Debug;RelWithDebInfo" + -DCMAKE_CONFIGURATION_TYPES="%CONFIGURATION%" - cmake --build . --config %CONFIGURATION% + - cd .. + - cmake --version test_script: - - ctest -C %CONFIGURATION% --output-on-failure + - out\%CONFIGURATION%\snappy-unittest \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 88c28fd..65ee97e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,8 +24,8 @@ matrix: addons: apt: - # List of whitelisted in travis packages for ubuntu-precise can be found here: - # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise + # List of whitelisted in travis packages for ubuntu-trusty can be found here: + # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-trusty # List of whitelisted in travis apt-sources: # https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json sources: @@ -48,6 +48,12 @@ install: - echo ${CXX} - ${CXX} --version +before_script: +- mkdir -p build && cd build +- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE +- cmake --build . +- cd .. +- cmake --version + script: -- mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE && - CTEST_OUTPUT_ON_FAILURE=1 make all test \ No newline at end of file +- build/snappy-unittest \ No newline at end of file