Skip to content

Commit

Permalink
Add Matrix Build Support to Travis-CI Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcialvieira committed Mar 2, 2019
1 parent fe510a2 commit d569d44
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit d569d44

Please sign in to comment.