Repository: arrow Updated Branches: refs/heads/master 096b8770a -> 39e487c30
ARROW-1608: Support Release verification script on macOS Author: Uwe L. Korn <[email protected]> Closes #1129 from xhochy/ARROW-1608 and squashes the following commits: cb768315 [Uwe L. Korn] ARROW-1608: Support Release verification script on macOS Project: http://git-wip-us.apache.org/repos/asf/arrow/repo Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/39e487c3 Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/39e487c3 Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/39e487c3 Branch: refs/heads/master Commit: 39e487c3017c8150ea96c3fda1b2aab7f816b788 Parents: 096b877 Author: Uwe L. Korn <[email protected]> Authored: Mon Sep 25 22:59:36 2017 -0400 Committer: Wes McKinney <[email protected]> Committed: Mon Sep 25 22:59:36 2017 -0400 ---------------------------------------------------------------------- dev/release/verify-release-candidate.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/arrow/blob/39e487c3/dev/release/verify-release-candidate.sh ---------------------------------------------------------------------- diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh index 9ebffdb..8d1bed7 100755 --- a/dev/release/verify-release-candidate.sh +++ b/dev/release/verify-release-candidate.sh @@ -66,7 +66,11 @@ fetch_archive() { download_rc_file ${dist_name}.tar.gz.sha512 gpg --verify ${dist_name}.tar.gz.asc ${dist_name}.tar.gz gpg --print-md MD5 ${dist_name}.tar.gz | diff - ${dist_name}.tar.gz.md5 - sha512sum ${dist_name}.tar.gz | diff - ${dist_name}.tar.gz.sha512 + if [ "$(uname)" == "Darwin" ]; then + shasum -a 512 ${dist_name}.tar.gz | diff - ${dist_name}.tar.gz.sha512 + else + sha512sum ${dist_name}.tar.gz | diff - ${dist_name}.tar.gz.sha512 + fi } setup_tempdir() { @@ -80,7 +84,11 @@ setup_tempdir() { setup_miniconda() { # Setup short-lived miniconda for Python and integration tests - MINICONDA_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh + if [ "$(uname)" == "Darwin" ]; then + MINICONDA_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh + else + MINICONDA_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh + fi MINICONDA=`pwd`/test-miniconda @@ -204,7 +212,11 @@ export PARQUET_HOME=$TMPDIR/install export LD_LIBRARY_PATH=$ARROW_HOME/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$ARROW_HOME/lib/pkgconfig:$PKG_CONFIG_PATH -NPROC=$(nproc) +if [ "$(uname)" == "Darwin" ]; then + NPROC=$(sysctl -n hw.ncpu) +else + NPROC=$(nproc) +fi VERSION=$1 RC_NUMBER=$2
