-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #615 from dillon-cullinan/enh-gpuci
[REVIEW] ENH Improve gpuCI scripts
- Loading branch information
Showing
11 changed files
with
125 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
# | ||
# Adopted from https://github.com/tmcdonell/travis-scripts/blob/dfaac280ac2082cd6bcaba3217428347899f2975/update-accelerate-buildbot.sh | ||
|
||
set -e | ||
|
||
# Setup 'gpuci_retry' for upload retries (results in 4 total attempts) | ||
export GPUCI_RETRY_MAX=3 | ||
export GPUCI_RETRY_SLEEP=30 | ||
|
||
# Set default label options if they are not defined elsewhere | ||
export LABEL_OPTION=${LABEL_OPTION:-"--label main"} | ||
|
||
# Skip uploads unless BUILD_MODE == "branch" | ||
if [ ${BUILD_MODE} != "branch" ]; then | ||
echo "Skipping upload" | ||
return 0 | ||
fi | ||
|
||
# Skip uploads if there is no upload key | ||
if [ -z "$MY_UPLOAD_KEY" ]; then | ||
echo "No upload key" | ||
return 0 | ||
fi | ||
|
||
################################################################################ | ||
# SETUP - Get conda file output locations | ||
################################################################################ | ||
|
||
gpuci_logger "Get conda file output locations" | ||
|
||
export LIBRMM_FILE=`conda build conda/recipes/librmm --output` | ||
export RMM_FILE=`conda build conda/recipes/rmm --python=$PYTHON --output` | ||
|
||
################################################################################ | ||
# UPLOAD - Conda packages | ||
################################################################################ | ||
|
||
gpuci_logger "Starting conda uploads" | ||
|
||
if [ "$BUILD_LIBRMM" == "1" && "$UPLOAD_LIBRMM" == "1" ]; then | ||
test -e ${LIBRMM_FILE} | ||
echo "Upload librmm" | ||
echo ${LIBRMM_FILE} | ||
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${LIBRMM_FILE} | ||
fi | ||
|
||
if [ "$BUILD_RMM" == "1" && "$UPLOAD_RMM" == "1" ]; then | ||
test -e ${RMM_FILE} | ||
echo "Upload rmm" | ||
echo ${RMM_FILE} | ||
gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${RMM_FILE} | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.