-
Notifications
You must be signed in to change notification settings - Fork 649
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Matrix Build Support to Travis-CI Integration
- Loading branch information
1 parent
fe510a2
commit d569d44
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,19 @@ cache: ccache | |
git: | ||
depth: 1 | ||
|
||
dist: xenial | ||
matrix: | ||
include: | ||
- os: linux | ||
dist: xenial | ||
- os: osx | ||
osx_image: xcode10.1 | ||
env: CMAKE_EXTRAFLAG="-DBOOST_ROOT=/usr/local/opt/[email protected] -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected]" | ||
|
||
sudo: true | ||
|
||
install: | ||
- sudo apt-get install --allow-unauthenticated libboost-thread-dev libboost-iostreams-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-chrono-dev libboost-test-dev libboost-context-dev libboost-regex-dev libboost-coroutine-dev cmake parallel | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache [email protected] ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --allow-unauthenticated libboost-thread-dev libboost-iostreams-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-chrono-dev libboost-test-dev libboost-context-dev libboost-regex-dev libboost-coroutine-dev cmake parallel ; fi | ||
|
||
addons: | ||
sonarcloud: | ||
|
@@ -27,8 +34,9 @@ env: | |
script: | ||
- programs/build_helpers/buildstep -s 3500 | ||
- ccache -s | ||
- programs/build_helpers/buildstep Prepare 1 "sed -i '/tests/d' libraries/fc/CMakeLists.txt" | ||
- programs/build_helpers/buildstep cmake 5 "cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON ." | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then programs/build_helpers/buildstep Prepare 1 "sed -i '/tests/d' libraries/fc/CMakeLists.txt" ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then programs/build_helpers/buildstep Prepare 1 "sed -i '' '/tests/d' libraries/fc/CMakeLists.txt" ; fi | ||
- programs/build_helpers/buildstep cmake 5 "cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON $CMAKE_EXTRAFLAG ." | ||
- programs/build_helpers/buildstep make.cli_wallet 1600 "programs/build_helpers/make_with_sonar bw-output -j 2 cli_wallet" | ||
- programs/build_helpers/buildstep make.witness_node 300 "programs/build_helpers/make_with_sonar bw-output -j 2 witness_node" | ||
- programs/build_helpers/buildstep make.serializer 45 "programs/build_helpers/make_with_sonar bw-output -j 2 js_operation_serializer" | ||
|