mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
f78f37204e
This commit moves toolstate publishing from Travis to Azure. We've been testing on azure for some time now and this works by deleting the Travis config and updating the credentials used on Azure.
26 lines
644 B
YAML
26 lines
644 B
YAML
#
|
|
# Azure Pipelines job to publish toolstate. Only triggers on pushes to master.
|
|
#
|
|
|
|
pr: none
|
|
trigger:
|
|
- master
|
|
|
|
variables:
|
|
- group: real-prod-credentials
|
|
|
|
pool:
|
|
vmImage: ubuntu-16.04
|
|
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 2
|
|
|
|
- script: |
|
|
export MESSAGE_FILE=$(mktemp -t msg.XXXXXX)
|
|
. src/ci/docker/x86_64-gnu-tools/repo.sh
|
|
commit_toolstate_change "$MESSAGE_FILE" "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "$MESSAGE_FILE" "$TOOLSTATE_REPO_ACCESS_TOKEN"
|
|
displayName: Publish toolstate
|
|
env:
|
|
TOOLSTATE_REPO_ACCESS_TOKEN: $(TOOLSTATE_REPO_ACCESS_TOKEN)
|