Skip to content

Commit

Permalink
ARROW-1608: Support Release verification script on macOS
Browse files Browse the repository at this point in the history
Author: Uwe L. Korn <[email protected]>

Closes apache#1129 from xhochy/ARROW-1608 and squashes the following commits:

cb768315 [Uwe L. Korn] ARROW-1608: Support Release verification script on macOS
  • Loading branch information
xhochy authored and wesm committed Sep 26, 2017
1 parent 4a4b639 commit 08b317d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions dev/release/verify-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 08b317d

Please sign in to comment.