From 6d475e2889a3e54f45c1fea31354ec9a4245f301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Tue, 14 Jan 2025 22:31:44 +0100 Subject: [PATCH] Run more Linux tests on CI * SPM version tests * Plugin build checks * Bazel build and test --- azure-pipelines.yml | 53 +++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 323dff9baa..cbf969447a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,33 +5,47 @@ variables: CI: 'true' jobs: -- job: Ubuntu +- job: spm_linux + displayName: 'SPM, Linux' pool: vmImage: 'ubuntu-24.04' # "Noble Numbat" strategy: maxParallel: 10 matrix: - 'Swift 6': + ': Swift 5.10': + image: swift:5.10-noble + ': Swift 6': image: swift:6.0-noble container: $[ variables['image'] ] steps: - script: swift test --parallel -Xswiftc -DDISABLE_FOCUSED_EXAMPLES displayName: swift test -- job: macOS +- job: bazel_linux + displayName: 'Bazel, Linux : Swift 6' + pool: + vmImage: 'ubuntu-24.04' # "Noble Numbat" + steps: + - script: | + bazel build --noincompatible_enable_cc_toolchain_resolution :swiftlint + bazel test--noincompatible_enable_cc_toolchain_resolution --test_output=errors //Tests/... + displayName: bazel test + +- job: tests_macos + displayName: 'Tests, macOS' strategy: maxParallel: 10 matrix: - '14, Xcode 15.4': + '14 : Xcode 15.4': image: 'macOS-14' xcode: '15.4' - '14, Xcode 16.1': + '14 : Xcode 16.1': image: 'macOS-14' xcode: '16.1' - '15, Xcode 15.4': + '15 : Xcode 15.4': image: 'macOS-15' xcode: '15.4' - '15, Xcode 16.2': + '15 : Xcode 16.2': image: 'macOS-15' xcode: '16.2' pool: @@ -42,23 +56,20 @@ jobs: - script: swift test --parallel -Xswiftc -DDISABLE_FOCUSED_EXAMPLES displayName: swift test -- job: Plugins # Plugins shall be able to run on older Swift versions. +- job: plugins_linux # Plugins shall be able to run on older Swift versions. + displayName: 'Plugins, Linux' + pool: + vmImage: 'ubuntu-24.04' # "Noble Numbat" strategy: maxParallel: 10 matrix: - ': macOS 13, Swift 5.9': - image: 'macOS-13' - xcode: '15.2' - ': macOS 14, Swift 5.10': - image: 'macOS-14' - xcode: '15.4' - ': macOS 14, Swift 6': - image: 'macOS-14' - xcode: '16.1' - pool: - vmImage: $(image) - variables: - DEVELOPER_DIR: /Applications/Xcode_$(xcode).app + ': Swift 5.9': + image: swift:5.9-focal + ': Swift 5.10': + image: swift:5.10-noble + ': Swift 6': + image: swift:6.0-noble + container: $[ variables['image'] ] steps: - script: swift build -c release --product SwiftLintCommandPlugin displayName: Command Plugin