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.
This commit is contained in:
@@ -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
|
||||
14
.travis.yml
14
.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
|
||||
- build/snappy-unittest
|
||||
Reference in New Issue
Block a user