summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dimov <pdimov@gmail.com>2019-12-29 06:42:56 +0200
committerPeter Dimov <pdimov@gmail.com>2019-12-29 06:42:56 +0200
commitfe48da43ac4d234973c8c1c5a84bd9aebbc70216 (patch)
tree8bea46f7dcd85de76f474dc0202c8b27e6aed0f3
parentbd0a7956cd65d1e36100134c6991b9aa41eb2dc8 (diff)
downloadboost-fe48da43ac4d234973c8c1c5a84bd9aebbc70216.tar.gz
Add CMake jobs to Travis
-rw-r--r--.travis.yml45
1 files changed, 42 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 727630103a..246500a900 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,11 +55,13 @@ matrix:
- env: SCRIPT=ci_boost_status RELEASE=1
# Run 'quick' tests.
- - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=gcc CXXSTD=03,11
+ - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=gcc CXXSTD=03,11 DIST=xenial
+ dist: xenial
compiler: g++
- - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=clang CXXSTD=03,11
- compiler: clang++
+ - env: SCRIPT=ci_boost_status TARGET=quick TOOLSET=gcc CXXSTD=14,17 DIST=bionic
+ dist: bionic
+ compiler: g++
# Build Boost
- env: SCRIPT=ci_boost_build TOOLSET=gcc CXXSTD=11
@@ -69,6 +71,43 @@ matrix:
- env: SCRIPT=ci_boost_build TOOLSET=gcc CXXSTD=11 RELEASE=1
compiler: g++
+ # Build Boost with CMake
+ - env: CMAKE_BUILD=1
+ compiler: g++
+
+ before_script: true
+ before_install: true
+ after_success: true
+ after_failure: true
+ after_script: true
+
+ install:
+ - git submodule update --init
+
+ script:
+ - mkdir __build && cd __build
+ - cmake -DBOOST_ENABLE_CMAKE=ON -DBoost_VERBOSE=ON -DBOOST_INSTALL_LAYOUT=tagged -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF ..
+ - cmake --build .
+
+ # Test Boost with CMake
+ - env: CMAKE_TEST=1
+ compiler: g++
+
+ before_script: true
+ before_install: true
+ after_success: true
+ after_failure: true
+ after_script: true
+
+ install:
+ - git submodule update --init
+
+ script:
+ - mkdir __build && cd __build
+ - cmake -DBOOST_ENABLE_CMAKE=ON -DBoost_VERBOSE=ON -DBUILD_TESTING=ON ..
+ - cmake --build .
+ - ctest --output-on-failure -R quick
+
# # Run tests for the library updated by this commit.
# - env: SCRIPT=ci_boost_test_library TOOLSET=gcc CXXSTD=11
# compiler: g++