From df0182d12edbdc33f326e2ae24c61932a38c43b5 Mon Sep 17 00:00:00 2001 From: Roy Sprowl Date: Tue, 27 Feb 2018 11:37:56 -0800 Subject: [PATCH] build both gcc and xcode --- jenkins/{osx_c.sh => osx_gcc_openssl.sh} | 0 jenkins/osx_xcode_native.sh | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) rename jenkins/{osx_c.sh => osx_gcc_openssl.sh} (100%) create mode 100755 jenkins/osx_xcode_native.sh diff --git a/jenkins/osx_c.sh b/jenkins/osx_gcc_openssl.sh similarity index 100% rename from jenkins/osx_c.sh rename to jenkins/osx_gcc_openssl.sh diff --git a/jenkins/osx_xcode_native.sh b/jenkins/osx_xcode_native.sh new file mode 100755 index 0000000..a8ffaab --- /dev/null +++ b/jenkins/osx_xcode_native.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright (c) Microsoft. All rights reserved. +# Licensed under the MIT license. See LICENSE file in the project root for full license information. +# + +set -e + +script_dir=$(cd "$(dirname "$0")" && pwd) +build_root=$(cd "${script_dir}/.." && pwd) +build_folder=$build_root"/cmake" + +CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) + +rm -r -f $build_folder +mkdir -p $build_folder +pushd $build_folder +cmake .. -Drun_unittests:bool=ON -G Xcode +cmake --build . -- --jobs=$CORES +ctest -C "debug" -V +popd