mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
MacOS no longer ships 6.0, and Arch Linux's mesa GPU drivers are no longer compatible with LLVM 6.0.
37 lines
800 B
YAML
37 lines
800 B
YAML
# Job for checking wpiformat violations
|
|
|
|
parameters:
|
|
jobName: ''
|
|
pool:
|
|
vmImage: 'Ubuntu 18.04'
|
|
|
|
jobs:
|
|
- job: Styleguide
|
|
pool: ${{ parameters.pool }}
|
|
|
|
container: ubuntu
|
|
|
|
workspace:
|
|
clean: all
|
|
|
|
timeoutInMinutes: 0
|
|
|
|
steps:
|
|
- script: |
|
|
sudo apt-get update -q
|
|
sudo apt-get install gnupg lsb-release software-properties-common -y
|
|
chmod +x azure-templates/clang-format.sh
|
|
sudo ./azure-templates/clang-format.sh 10
|
|
sudo pip3 install wpiformat
|
|
displayName: 'Install wpiformat'
|
|
|
|
- script: |
|
|
git checkout -b master
|
|
wpiformat -clang 10
|
|
displayName: 'Run wpiformat'
|
|
|
|
- script: |
|
|
# Ensure formatter made no changes
|
|
git --no-pager diff --exit-code HEAD
|
|
displayName: 'Check wpiformat Output'
|