From 63de6eaed4bebcf9e62bcbdb643b1ce44dde23f9 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 15 Oct 2019 21:32:26 -0500 Subject: [PATCH] Add macOS Boost tets. --- azure-pipelines.yml | 138 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 117 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 09b15f027..bc1b4d844 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -366,18 +366,6 @@ stages: TOOLSET: gcc CXX: g++-9 PACKAGES: g++-9 - # 1.65.1 .. GCC 9: - # BOOST_VERSION: 1.65.1 - # BOOST_VERSION_U: 1_65_1 - # TOOLSET: gcc - # CXX: g++-9 - # PACKAGES: g++-9 - # 1.64.0 .. GCC 9: - # BOOST_VERSION: 1.64.0 - # BOOST_VERSION_U: 1_64_0 - # TOOLSET: gcc - # CXX: g++-9 - # PACKAGES: g++-9 steps: - bash: | set -e @@ -455,15 +443,123 @@ stages: ./b2 -v displayName: Build - bash: | - set -e - pushd ${HOME} - git clone --recursive https://github.com/boostorg/boost.git - cd boost - git checkout ${BOOST_BRANCH} - CXX_PATH=`which ${CXX}` - echo "using ${TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam - "${BUILD_SOURCESDIRECTORY}/src/engine/b2" "--boost-build=${BUILD_SOURCESDIRECTORY}/src" --debug-configuration --build-type=complete --layout=versioned -n -d1 toolset=${TOOLSET} install - popd + set -e + pushd ${HOME} + git clone --recursive https://github.com/boostorg/boost.git + cd boost + git checkout ${BOOST_BRANCH} + CXX_PATH=`which ${CXX}` + echo "using ${TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam + "${BUILD_SOURCESDIRECTORY}/src/engine/b2" "--boost-build=${BUILD_SOURCESDIRECTORY}/src" --debug-configuration --build-type=complete --layout=versioned -n -d1 toolset=${TOOLSET} install + popd + displayName: Test + + - job: 'Release_macOS' + displayName: 'Release macOS' + pool: + vmImage: 'macOS-10.14' + strategy: + matrix: + 1.71.0 .. Xcode 11: + BOOST_VERSION: 1.71.0 + BOOST_VERSION_U: 1_71_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + 1.70.0 .. Xcode 11: + BOOST_VERSION: 1.70.0 + BOOST_VERSION_U: 1_70_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + 1.69.0 .. Xcode 11: + BOOST_VERSION: 1.69.0 + BOOST_VERSION_U: 1_69_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + 1.68.0 .. Xcode 11: + BOOST_VERSION: 1.68.0 + BOOST_VERSION_U: 1_68_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + 1.67.0 .. Xcode 11: + BOOST_VERSION: 1.67.0 + BOOST_VERSION_U: 1_67_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + 1.66.0 .. Xcode 11: + BOOST_VERSION: 1.66.0 + BOOST_VERSION_U: 1_66_0 + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + steps: + - bash: | + set -e + uname -a + sudo xcode-select -switch ${XCODE_APP} + which clang++ + displayName: Install + - bash: | + set -e + cd src/engine + ./build.sh ${TOOLSET} + ./b2 -v + displayName: Build + - bash: | + set -e + pushd ${HOME} + wget -nv https://dl.bintray.com/boostorg/release/${BOOST_VERSION}/source/boost_${BOOST_VERSION_U}.tar.bz2 + tar -jxf boost_${BOOST_VERSION_U}.tar.bz2 + cd boost_${BOOST_VERSION_U} + CXX_PATH=`which ${CXX}` + echo "using ${TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam + "${BUILD_SOURCESDIRECTORY}/src/engine/b2" "--boost-build=${BUILD_SOURCESDIRECTORY}/src" --debug-configuration --build-type=complete --layout=versioned -n -d1 toolset=${TOOLSET} install + popd + displayName: Test + + - job: 'Dev_macOS' + displayName: 'Dev macOS' + pool: + vmImage: 'macOS-10.14' + strategy: + matrix: + Master .. Xcode 11: + BOOST_BRANCH: master + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + Develop .. GCC 9: + BOOST_BRANCH: develop + TOOLSET: clang + CXX: clang++ + XCODE_APP: /Applications/Xcode_11.app + steps: + - bash: | + set -e + uname -a + sudo xcode-select -switch ${XCODE_APP} + which clang++ + displayName: Install + - bash: | + set -e + cd src/engine + ./build.sh ${TOOLSET} + ./b2 -v + displayName: Build + - bash: | + set -e + pushd ${HOME} + git clone --recursive https://github.com/boostorg/boost.git + cd boost + git checkout ${BOOST_BRANCH} + CXX_PATH=`which ${CXX}` + echo "using ${TOOLSET} : : ${CXX_PATH} ;" > ${HOME}/user-config.jam + "${BUILD_SOURCESDIRECTORY}/src/engine/b2" "--boost-build=${BUILD_SOURCESDIRECTORY}/src" --debug-configuration --build-type=complete --layout=versioned -n -d1 toolset=${TOOLSET} install + popd displayName: Test - stage: WebsiteUpdate