ci: use consistent python for all jobs
authorRan Benita <ran@unusedvar.com>
Sat, 28 Dec 2019 14:05:04 +0000 (16:05 +0200)
committerRan Benita <ran@unusedvar.com>
Sat, 28 Dec 2019 14:05:32 +0000 (16:05 +0200)
Signed-off-by: Ran Benita <ran@unusedvar.com>
.azure-pipelines/steps/dependencies-linux.yml
.azure-pipelines/steps/dependencies-python.yml [new file with mode: 0644]
.azure-pipelines/steps/meson.yml
azure-pipelines.yml

index 6d6bcceac3f14c8252f1368d4b78ef928111f6e0..a444807c540f69fc557dd32c48d2bc2cfdd106dc 100644 (file)
@@ -1,10 +1,5 @@
 ---
 steps:
-  - task: UsePythonVersion@0
-    inputs:
-      versionSpec: '3.7'
-    displayName: 'Use Python 3.7'
-
   - bash: |
       set -euo pipefail
       python -m pip install --upgrade pip meson
diff --git a/.azure-pipelines/steps/dependencies-python.yml b/.azure-pipelines/steps/dependencies-python.yml
new file mode 100644 (file)
index 0000000..fb3f6ab
--- /dev/null
@@ -0,0 +1,6 @@
+---
+steps:
+  - task: UsePythonVersion@0
+    inputs:
+      versionSpec: '3.7'
+    displayName: 'Use Python 3.7'
index 5348cbef2e84b251cedef9df7cb5dbe7b030f48b..c4e6c6cd9bc869d7ef733f2fbbf04ea0a73cd604 100644 (file)
@@ -23,7 +23,7 @@ steps:
   - bash: |
       set -euo pipefail
       meson test -C build --print-errorlogs --wrapper="${{ parameters.wrapper }}"
-      python3 scripts/meson-junit-report.py --project-name=xkbcommon \
+      python scripts/meson-junit-report.py --project-name=xkbcommon \
         --job-id='$(Build.BuildId)' --branch='$(Build.SourceBranch)' \
         --output=testlog.xml build/meson-logs/testlog*.json
     displayName: 'Test'
index f5308a76f8a6c1b2f221a6f213b66d1c01e21a02..ea209fecf490520668cbd51b2abdfdcb24ceb759 100644 (file)
@@ -11,6 +11,7 @@ jobs:
     pool:
       vmImage: 'ubuntu-16.04'
     steps:
+      - template: .azure-pipelines/steps/dependencies-python.yml
       - template: .azure-pipelines/steps/dependencies-linux.yml
       - template: .azure-pipelines/steps/meson.yml
         parameters:
@@ -23,6 +24,7 @@ jobs:
     pool:
       vmImage: 'macos-10.13'
     steps:
+      - template: .azure-pipelines/steps/dependencies-python.yml
       - template: .azure-pipelines/steps/dependencies-macos.yml
       - template: .azure-pipelines/steps/meson.yml
         parameters: