Check in build that Sourcery generated files are up-to-date (#4035)
This commit is contained in:
parent
9e485266be
commit
68d88ded61
|
@ -2,6 +2,17 @@ trigger:
|
|||
- master
|
||||
|
||||
jobs:
|
||||
- job: Sourcery
|
||||
pool:
|
||||
vmImage: 'macOS-12'
|
||||
steps:
|
||||
- script: brew install sourcery
|
||||
displayName: Install Sourcery
|
||||
- script: make sourcery
|
||||
displayName: Generate sources
|
||||
- script: "! git diff -U0 | grep '^[-+][^-+]' | grep --invert-match '// Generated using Sourcery'"
|
||||
displayName: Check changed files ignoring Sourcery's version
|
||||
|
||||
- job: linux
|
||||
pool:
|
||||
vmImage: 'Ubuntu 18.04'
|
||||
|
|
Loading…
Reference in New Issue