Travis fix:

Only test against latest stable on Windows platforms, on all other
(ubuntu) platforms use latest $OYTHON_VER as specified in travis
configuration.
This commit is contained in:
Georg Richter
2025-01-29 06:57:04 +01:00
parent d10ed72013
commit d735c9e879

View File

@ -50,13 +50,15 @@ before_install:
sudo make install
export MARIADB_PLUGIN_DIR==`mariadb_config --plugindir`
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/mariadb
# install "install-latest" to retrieve latest python version corresponding to major.minor version
git clone https://github.com/momo-lab/pyenv-install-latest.git $PYENV_ROOT/plugins/pyenv-install-latest
export REAL_PYTHON_VERSION=$(pyenv install-latest --print $PYTHON_VER)
else
export MARIADB_PLUGIN_DIR=$MARIADB_CC_INSTALL/lib/mariadb/plugin
# On Windows we test against latest stable only
export REAL_PYTHON_VERSION=$(pyenv install --list | grep --extended-regexp "^\s*[0-9][0-9.]*[0-9]\s*$" | tail -1 | tr -d ' ')
fi
# install "install-latest" to retrieve latest python version corresponding to major.minor version
- git clone https://github.com/momo-lab/pyenv-install-latest.git $PYENV_ROOT/plugins/pyenv-install-latest
- export REAL_PYTHON_VERSION=$(pyenv install --list | grep --extended-regexp "^\s*[0-9][0-9.]*[0-9]\s*$" | tail -1 | tr -d ' ')
- echo $REAL_PYTHON_VERSION
- pyenv install $REAL_PYTHON_VERSION
- export PYENV_VERSION=$REAL_PYTHON_VERSION