From e29ffbb250b5af76c89ad3d1fed41656cba8744c Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 11 Jul 2024 11:13:33 +0200 Subject: [PATCH] ci: install pip packages --- .appveyor.yml | 2 ++ .azure-pipelines.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index 283e75ff..a21694ac 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -39,6 +39,8 @@ build_script: # The CMAKE_CONFIGURATION_TYPES CMake option make sure to not uselessly provide # build configurations that will not be used. - cmd: > + pip install colorama + echo %NUMBER_OF_PROCESSORS% set CMAKE_BUILD_PARALLEL_LEVEL=%NUMBER_OF_PROCESSORS% diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8c43f90c..687e22c3 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -63,11 +63,13 @@ strategy: EXE_EXTENSIONS: .exe macOS amd64 AppleClang: VM_IMAGE: 'macOS-12' + PIP_PACKAGES: colorama CMAKE_GENERATOR: Unix Makefiles NPROC_COMMAND: sysctl -n hw.logicalcpu RUN_TESTS: true macOS arm64 AppleClang: VM_IMAGE: 'macOS-12' + PIP_PACKAGES: colorama CMAKE_GENERATOR: Unix Makefiles COMPILER_FLAGS: -target arm64-apple-macos11 -Wno-overriding-t-option NPROC_COMMAND: sysctl -n hw.logicalcpu @@ -87,6 +89,9 @@ steps: if [ -n "${APT_PACKAGES:-}" ]; then sudo apt-get update && sudo apt-get -y -q --no-install-recommends install ${APT_PACKAGES} fi + if [ -n "${PIP_PACKAGES:-}" ]; then + pip install ${PIP_PACKAGES} + fi if [ -n "${SETUP_COMMANDS:-}" ]; then $(SETUP_COMMANDS) fi