]> granicus.if.org Git - zziplib/commitdiff
azure: install Python3 xmlreporting
authorPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 07:50:22 +0000 (09:50 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 08:14:04 +0000 (10:14 +0200)
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

index 72d1d340b555fb339e00424098f93701b8bc300c..b7c66a9319c406a8a24599e216a509adc0d67afb 100644 (file)
@@ -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