From d735c9e8793f16808e479b681195af2247cf51f1 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Wed, 29 Jan 2025 06:57:04 +0100 Subject: [PATCH] Travis fix: Only test against latest stable on Windows platforms, on all other (ubuntu) platforms use latest $OYTHON_VER as specified in travis configuration. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 80c8bec..50379ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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