From fa835579f8024dbf54ef6759dceecd1ff244f69a Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 9 Dec 2015 13:55:07 +0100 Subject: Add boost builds on Travis OSX --- src/scripts/ci/travis/build.sh | 6 +++++- src/scripts/ci/travis/install.sh | 10 +++++++++- src/scripts/ci/travis/install_osx_packages.sh | 10 ---------- 3 files changed, 14 insertions(+), 12 deletions(-) delete mode 100755 src/scripts/ci/travis/install_osx_packages.sh (limited to 'src/scripts/ci') diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh index 06d3bfb04..50fc3164f 100755 --- a/src/scripts/ci/travis/build.sh +++ b/src/scripts/ci/travis/build.sh @@ -16,6 +16,10 @@ if [ "$MODULES" = "min" ]; then CFG_FLAGS+=(--minimized-build --enable-modules=base) fi +if [ "$BOOST" = "y" ]; then + CFG_FLAGS+=(--with-boost) +fi + # Workaround for missing update-alternatives # https://github.com/travis-ci/travis-ci/issues/3668 if [ "$CXX" = "g++" ]; then @@ -59,7 +63,7 @@ if [ "$MODULES" != "min" ] && [ "${TARGETOS:0:3}" != "ios" ]; then ./botan-test fi -if [ "$MODULES" != "min" ] && [ "$BUILD_MODE" = "shared" ] && [ "$TARGETOS" = "desktop" ] +if [ "$MODULES" != "min" ] && [ "$BUILD_MODE" = "shared" ] && [ "$TARGETOS" = "native" ] then python2 --version python3 --version diff --git a/src/scripts/ci/travis/install.sh b/src/scripts/ci/travis/install.sh index 830834d3e..67dd82cfe 100755 --- a/src/scripts/ci/travis/install.sh +++ b/src/scripts/ci/travis/install.sh @@ -12,5 +12,13 @@ if [ "$BUILD_MODE" = "coverage" ]; then fi if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$TARGETOS" != "ios" ]; then - ./src/scripts/ci/travis/install_osx_packages.sh + # Workaround for https://github.com/Homebrew/homebrew/issues/42553 + brew update || brew update + + brew install xz + brew install python # python2 + brew install python3 + + # Boost 1.58 is installed on Travis OS X images + # brew install boost fi diff --git a/src/scripts/ci/travis/install_osx_packages.sh b/src/scripts/ci/travis/install_osx_packages.sh deleted file mode 100755 index 588855cc0..000000000 --- a/src/scripts/ci/travis/install_osx_packages.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -ev -which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if available - -# Workaround for https://github.com/Homebrew/homebrew/issues/42553 -brew update || brew update - -brew install xz -brew install python # python2 -brew install python3 -- cgit v1.2.3