From 2b4a68fdbe0871e15649a6f552ee0d3e45e92fc6 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 30 Jun 2022 22:05:58 +0200 Subject: [PATCH] CI: remove xenial from env config --- .github/workflows/test_environment.yml | 2 -- .../install-prereqs-ubuntu.sh | 18 ++++-------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test_environment.yml b/.github/workflows/test_environment.yml index 47de462f6f..ee34b50aaf 100644 --- a/.github/workflows/test_environment.yml +++ b/.github/workflows/test_environment.yml @@ -25,8 +25,6 @@ jobs: name: focal - os: ubuntu name: hirsute - - os: ubuntu - name: xenial - os: archlinux name: latest - os: debian diff --git a/Tools/environment_install/install-prereqs-ubuntu.sh b/Tools/environment_install/install-prereqs-ubuntu.sh index b22c666bf0..8fb56d8964 100755 --- a/Tools/environment_install/install-prereqs-ubuntu.sh +++ b/Tools/environment_install/install-prereqs-ubuntu.sh @@ -62,12 +62,7 @@ RELEASE_CODENAME=$(lsb_release -c -s) PYTHON_V="python3" # starting from ubuntu 20.04, python isn't symlink to default python interpreter PIP=pip3 -if [ ${RELEASE_CODENAME} == 'xenial' ] ; then - SITLFML_VERSION="2.3v5" - SITLCFML_VERSION="2.3" - PYTHON_V="python" - PIP=pip2 -elif [ ${RELEASE_CODENAME} == 'bionic' ] ; then +if [ ${RELEASE_CODENAME} == 'bionic' ] ; then SITLFML_VERSION="2.4" SITLCFML_VERSION="2.4" PYTHON_V="python" @@ -95,11 +90,6 @@ elif [ ${RELEASE_CODENAME} == 'groovy' ] || SITLCFML_VERSION="2.5" PYTHON_V="python3" PIP=pip3 -elif [ ${RELEASE_CODENAME} == 'trusty' ]; then - SITLFML_VERSION="2" - SITLCFML_VERSION="2" - PYTHON_V="python" - PIP=pip2 else # We assume APT based system, so let's try with apt-cache first. SITLCFML_VERSION=$(apt-cache search -n '^libcsfml-audio' | cut -d" " -f1 | head -1 | grep -Eo '[+-]?[0-9]+([.][0-9]+)?') @@ -137,7 +127,7 @@ fi # Lists of packages to install BASE_PKGS="build-essential ccache g++ gawk git make wget" -if [ ${RELEASE_CODENAME} == 'xenial' ] || [ ${RELEASE_CODENAME} == 'bionic' ]; then +if [ ${RELEASE_CODENAME} == 'bionic' ]; then # use fixed version for package that drop python2 support PYTHON_PKGS="future lxml pymavlink MAVProxy pexpect flake8==3.7.9 requests==2.27.1 monotonic==1.6 geocoder empy configparser==4.0.2 click==7.1.2 decorator==4.4.2" else @@ -146,7 +136,7 @@ fi # add some Python packages required for commonly-used MAVProxy modules and hex file generation: if [[ $SKIP_AP_EXT_ENV -ne 1 ]]; then - if [ ${RELEASE_CODENAME} == 'xenial' ] || [ ${RELEASE_CODENAME} == 'bionic' ]; then + if [ ${RELEASE_CODENAME} == 'bionic' ]; then PYTHON_PKGS="$PYTHON_PKGS pygame==2.0.3 intelhex" else PYTHON_PKGS="$PYTHON_PKGS pygame intelhex" @@ -292,7 +282,7 @@ fi # Install all packages $APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS $COVERAGE_PKGS # Update Pip and Setuptools on old distro -if [ ${RELEASE_CODENAME} == 'xenial' ] || [ ${RELEASE_CODENAME} == 'bionic' ]; then +if [ ${RELEASE_CODENAME} == 'bionic' ]; then # use fixed version for package that drop python2 support $PIP install --user -U pip==20.3 setuptools==44.0.0 fi