Skip to content

Commit cbb7a4c

Browse files
committed
Always check for boa compatibility
1 parent efce991 commit cbb7a4c

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

scripts/test.sh

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ if [[ "$(uname)" == MINGW* ]]; then
4949
# hmaarrfk -- 2023/02
5050
# For some reason the Mambaforge-Linux-ppc64le works fine in under 15 mins on a branch
5151
# but then fails to build within the 6 hour time limit on the release CI.
52-
if [[ "${INSTALLER_NAME}" == "Mambaforge" ]] && [[ "${INSTALLER_EXE}" != "Mambaforge-Linux-ppc64le.sh" ]]; then
53-
echo "***** Mambaforge detected. Checking for boa compatibility *****"
52+
if [[ "${INSTALLER_EXE}" != "*-Linux-ppc64le.sh" ]]; then
53+
echo "***** Checking for boa compatibility *****"
5454
mamba_version_start=$(mamba --version | grep mamba | cut -d ' ' -f 2)
5555
mamba.exe install boa --yes
5656
mamba_version_end=$(mamba --version | grep mamba | cut -d ' ' -f 2)
@@ -60,12 +60,12 @@ if [[ "$(uname)" == MINGW* ]]; then
6060
fi
6161
fi
6262
else
63-
# Test one of our installers in batch mode
63+
# Test one of our installers (Mambaforge )in batch mode
6464
if [[ "${INSTALLER_NAME}" == "Mambaforge" ]]; then
6565
bash "${INSTALLER_PATH}" -b -p "${CONDA_PATH}"
6666
# And the other in interactive mode
6767
else
68-
# Test interactive install. The install will ask the user to
68+
# Test interactive install (Miniforge). The install will ask the user to
6969
# - newline -- read the EULA
7070
# - yes -- then accept
7171
# - ${CONDA_PATH} -- Then specify the path
@@ -86,19 +86,16 @@ EOF
8686
conda info
8787
conda list
8888

89-
if [[ "${INSTALLER_NAME}" == "Mambaforge" ]]; then
90-
echo "***** Mambaforge detected. Checking for boa compatibility *****"
91-
implementation=$(python -c "import platform; print(platform.python_implementation().lower())")
92-
major_minor_version=$(python -c 'import sys; print(f"{sys.version_info[0]}.{sys.version_info[1]}")')
93-
mamba_version_start=$(mamba --version | grep mamba | cut -d ' ' -f 2)
94-
mamba info
95-
mamba install "mamba=${mamba_version_start}" "python=${major_minor_version}.*=*_${implementation}" boa --yes
96-
mamba_version_end=$(mamba --version | grep mamba | cut -d ' ' -f 2)
97-
if [[ "${mamba_version_start}" != "${mamba_version_end}" ]]; then
98-
echo "mamba version changed from ${mamba_version_start} to ${mamba_version_end}"
99-
exit 1
100-
fi
101-
89+
echo "***** Checking for boa compatibility *****"
90+
implementation=$(python -c "import platform; print(platform.python_implementation().lower())")
91+
major_minor_version=$(python -c 'import sys; print(f"{sys.version_info[0]}.{sys.version_info[1]}")')
92+
mamba_version_start=$(mamba --version | grep mamba | cut -d ' ' -f 2)
93+
mamba info
94+
mamba install "mamba=${mamba_version_start}" "python=${major_minor_version}.*=*_${implementation}" boa --yes
95+
mamba_version_end=$(mamba --version | grep mamba | cut -d ' ' -f 2)
96+
if [[ "${mamba_version_start}" != "${mamba_version_end}" ]]; then
97+
echo "mamba version changed from ${mamba_version_start} to ${mamba_version_end}"
98+
exit 1
10299
fi
103100
fi
104101

0 commit comments

Comments
 (0)