schedules:
- cron: "9 9 9 * *"
displayName: Monthly Build
branches:
include:
- master
stages:
- template: azure/stages.yml@templates
parameters:
minrust: 1.33.0
codecov_token: $(CODECOV_TOKEN_SECRET)
test_features: "cargo_metadata"
- stage: committed
displayName: Lint History
dependsOn: []
jobs:
- job: "Committed"
pool:
vmImage: 'ubuntu-16.04'
steps:
- checkout: self
- template: v1/azdo-step.yml@gh-install
parameters:
git: crate-ci/committed
target: 'x86_64-unknown-linux-gnu'
to: $(Build.StagingDirectory)/tools
- script: |
echo "This project uses Conventional style, see https://www.conventionalcommits.org"
$(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv
displayName: Committed
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
resources:
repositories:
- repository: templates
type: github
name: crate-ci/azure-pipelines
endpoint: crate-ci
- repository: gh-install
type: github
name: crate-ci/gh-install
endpoint: crate-ci