Skip to content
Snippets Groups Projects
Commit da984a1a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Skip packages which are not supposed to be built for a given arch; Be more...

Skip packages which are not supposed to be built for a given arch; Be more verbose (still on issue #100)
parent 6f7695b4
No related branches found
No related tags found
No related merge requests found
......@@ -20,12 +20,17 @@ BLDOPT="${BLDOPT} --variant-config-files ${SCRIPTS_DIR}/conda_build_config.yaml"
BLDOPT="${BLDOPT} --python=${PYTHON_VERSION}"
if [ -n "${BOB_TEST_ONLY}" ]; then
log_info "Running ${CONDA_ROOT}/bin/conda build ${BLDOPT} --output conda to generate package name..."
tarball=$(${CONDA_ROOT}/bin/conda build ${BLDOPT} --output conda)
if [ -z "${tarball}" ]; then
log_info "Package ${CI_PROJECT_PATH} is NOT supposed to be built for ${OS_SLUG}/python${PYTHON_VERSION} (cannot generate tarball name). Skipping..."
exit 0
fi
log_info "Only testing package ${tarball}..."
set_conda_channels ${VISIBILITY} ${CI_COMMIT_TAG}
if [ ! -r "${tarball}" ]; then
log_info "Package ${tarball} does not exist locally - checking channel ${CONDA_CHANNELS[0]}..."
remote_name="${CONDA_CHANNELS[0]}/${OSNAME}-64/$(basename ${tarball})"
remote_name="${CONDA_CHANNELS[0]}/${OS_SLUG}/$(basename ${tarball})"
if url_exists ${remote_name}; then
log_info "Conda tarball exists in remote location, downloading..."
url_get ${tarball} ${remote_name}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment