[CMake/CI] Also test build as shared library on travis

Also, as a minor tweak, put cmake builds to the front
as they complete the most quickly
This commit is contained in:
Mike Dev
2019-12-28 13:54:25 +01:00
parent 957d2f1bca
commit 92f6a803a5

View File

@ -28,21 +28,32 @@ matrix:
include:
- os: linux
env: TOOLSET=gcc COMPILER=g++ CXXSTD=03
- os: linux
env: TEST_CMAKE=true # unused - just for identification in travis ci gui
script:
env: TEST_CMAKE=true # variables unused - just for identification in travis ci gui
script:
- git submodule update --init tools/cmake
- git submodule update --init libs/typeof
- git submodule update --init libs/conversion
- git submodule update --init libs/function_types
- git submodule update --init libs/fusion
- mkdir __build__
- cd __build__
- cmake .. -DBOOST_ENABLE_CMAKE=ON -DBOOST_REGEX_INCLUDE_EXAMPLES=ON
- git submodule update --init libs/typeof
- mkdir __build__ && cd __build__
- cmake .. -DBOOST_ENABLE_CMAKE=ON -DBOOST_REGEX_INCLUDE_EXAMPLES=ON
- cmake --build .
- os: linux
env: TEST_CMAKE=true BUILD_SHARED_LIBS=On # variables unused - just for identification in travis ci gui
script:
- git submodule update --init tools/cmake
- git submodule update --init libs/conversion
- git submodule update --init libs/function_types
- git submodule update --init libs/fusion
- git submodule update --init libs/typeof
- mkdir __build__ && cd __build__
- cmake .. -DBUILD_SHARED_LIBS=ON -DBOOST_ENABLE_CMAKE=ON -DBOOST_REGEX_INCLUDE_EXAMPLES=ON
- cmake --build .
- os: linux
env: TOOLSET=gcc COMPILER=g++ CXXSTD=03
- os: linux
env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=03,11
addons: