Run TSan job on Azure Pipelines with Bazel (#4130)

This commit is contained in:
JP Simard 2022-08-28 10:51:58 -04:00 committed by GitHub
parent bf9bf83143
commit 848ec452c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -82,11 +82,17 @@ jobs:
variables: variables:
DEVELOPER_DIR: /Applications/Xcode_13.3.1.app DEVELOPER_DIR: /Applications/Xcode_13.3.1.app
steps: steps:
- script: swift build --configuration release --sanitize thread - script: |
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.12.2/bazelisk-darwin-amd64 -o bazelisk
chmod +x bazelisk
displayName: Install Bazel
- script: ./bazelisk build --remote_cache=grpc://$BAZEL_REMOTE_CREDENTIALS@swiftlint-ci.jpsim.com:9092 -c opt --features=tsan swiftlint
env:
BAZEL_REMOTE_CREDENTIALS: $(BAZEL_REMOTE_CREDENTIALS)
displayName: Build SwiftLint displayName: Build SwiftLint
- script: swift run --configuration release --sanitize thread swiftlint lint --lenient - script: ./bazel-bin/swiftlint --lenient
displayName: Pre-cache SwiftLint Run displayName: Pre-cache SwiftLint Run
- script: swift run --configuration release --sanitize thread swiftlint lint --lenient - script: ./bazel-bin/swiftlint --lenient
displayName: Post-cache SwiftLint Run displayName: Post-cache SwiftLint Run
- job: jazzy - job: jazzy