Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Aug 20, 2023
1 parent 92c85da commit 9871a14
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if [[ "$(uname)" == MINGW* ]]; then
else
EXT="sh";
fi
echo finding installer
INSTALLER_PATH=$(find build/ -name "*forge*.${EXT}" | head -n 1)
echo found ${INSTALLER_PATH}

Check failure on line 22 in scripts/test.sh

View workflow job for this annotation

GitHub Actions / lint

Double quote to prevent globbing and word splitting.
INSTALLER_NAME=$(basename "${INSTALLER_PATH}" | cut -d "-" -f 1)
INSTALLER_EXE=$(basename "${INSTALLER_PATH}")

Check failure on line 24 in scripts/test.sh

View workflow job for this annotation

GitHub Actions / lint

INSTALLER_EXE appears unused. Verify use (or export if used externally).

Expand Down Expand Up @@ -46,18 +48,13 @@ if [[ "$(uname)" == MINGW* ]]; then
conda.exe install r-base --yes --quiet
conda.exe list

# hmaarrfk -- 2023/02
# For some reason the Mambaforge-Linux-ppc64le works fine in under 15 mins on a branch
# but then fails to build within the 6 hour time limit on the release CI.
if [[ "${INSTALLER_EXE}" != "*-Linux-ppc64le.sh" ]]; then
echo "***** Checking for boa compatibility *****"
mamba_version_start=$(mamba --version | grep mamba | cut -d ' ' -f 2)
mamba.exe install boa --yes
mamba_version_end=$(mamba --version | grep mamba | cut -d ' ' -f 2)
if [[ "${mamba_version_start}" != "${mamba_version_end}" ]]; then
echo "mamba version changed from ${mamba_version_start} to ${mamba_version_end}"
exit 1
fi
echo "***** Checking for boa compatibility *****"
mamba_version_start=$(mamba --version | grep mamba | cut -d ' ' -f 2)
mamba.exe install boa --yes
mamba_version_end=$(mamba --version | grep mamba | cut -d ' ' -f 2)
if [[ "${mamba_version_start}" != "${mamba_version_end}" ]]; then
echo "mamba version changed from ${mamba_version_start} to ${mamba_version_end}"
exit 1
fi
else
# Test one of our installers in batch mode
Expand Down

0 comments on commit 9871a14

Please sign in to comment.