From 01e9694e0cd0280c16864b92f7fe978b7aeb7cef Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 1 Aug 2019 09:50:22 +0200 Subject: [PATCH] azure: install Python3 xmlreporting With recent changes CMake is now favoring Python 3 instead of Python 2. As Ubuntu has both versions of the interpreter installed, Azure has thus started to use Python 3, but will fail due to a missing dependency on xmlreporting when executing tests. This is caused by us installing xmlreporting for Python 2, only. As there is no python3-xmlreporting package available in Ubuntu, install python3-pip instead and use it to install unittest-xml-reporting. --- azure-pipelines.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 72d1d34..b7c66a9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,8 +18,11 @@ steps: sudo apt-get install --fix-broken --ignore-missing libsdl2-dev displayName: 'install libsdl2-dev' - script: | - sudo apt-get install --fix-broken --ignore-missing python-xmlrunner - displayName: 'install python-xmlrunner' + sudo apt-get install --fix-broken --ignore-missing python3-pip + displayName: 'install python3-pip' +- script: | + pip3 install unittest-xml-reporting + displayName: 'install unittest-xml-reporting' - script: | rm -rf build mkdir build -- 2.40.0