Merge pull request #8254 from paul-elliott-arm/fix_travis_coverity_build_2_28

[Backport 2.28] Re-add python install of requirements to Travis CI.
diff --git a/.travis.yml b/.travis.yml
index 6049b22..3b4132e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,9 @@
-distro: xenial
+# Declare python as our language. This way we get our chosen Python version,
+# and pip is available. Gcc and clang are available anyway.
+dist: jammy
 os: linux
-language: c
-compiler: gcc
+language: python
+python: 3.10
 
 cache: ccache
 
@@ -9,6 +11,9 @@
   only:
     coverity_scan
 
+install:
+  - $PYTHON scripts/min_requirements.py
+
 env:
   global:
     - SEED=1