Skip to content

Commit

Permalink
factor out testing repository cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Feb 4, 2020
1 parent df9ef25 commit a29e88a
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions dev/release/verify-release-candidate.sh
Expand Up @@ -522,6 +522,18 @@ test_integration() {
$INTEGRATION_TEST_ARGS
}

clone_testing_repositories() {
# Clone testing repositories if not cloned already
if [ ! -d "arrow-testing" ]; then
git clone https://github.com/apache/arrow-testing.git
fi
if [ ! -d "parquet-testing" ]; then
git clone https://github.com/apache/parquet-testing.git
fi
export ARROW_TEST_DATA=$PWD/arrow-testing/data
export PARQUET_TEST_DATA=$PWD/parquet-testing/data
}

test_source_distribution() {
export ARROW_HOME=$TMPDIR/install
export PARQUET_HOME=$TMPDIR/install
Expand All @@ -534,15 +546,7 @@ test_source_distribution() {
NPROC=$(nproc)
fi

# Clone testing repositories if not cloned already
if [ ! -d "arrow-testing" ]; then
git clone https://github.com/apache/arrow-testing.git
fi
if [ ! -d "parquet-testing" ]; then
git clone https://github.com/apache/parquet-testing.git
fi
export ARROW_TEST_DATA=$PWD/arrow-testing/data
export PARQUET_TEST_DATA=$PWD/parquet-testing/data
clone_testing_repositories

if [ ${TEST_JAVA} -gt 0 ]; then
test_package_java
Expand Down Expand Up @@ -668,11 +672,8 @@ test_macos_wheels() {
}

test_wheels() {
if [ ! -d "arrow-testing" ]; then
git clone https://github.com/apache/arrow-testing.git
fi
export ARROW_TEST_DATA=$PWD/arrow-testing/data

clone_testing_repositories

local download_dir=binaries
mkdir -p ${download_dir}

Expand Down

0 comments on commit a29e88a

Please sign in to comment.