diff options
-rw-r--r-- | .azure-pipelines.yml | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml deleted file mode 100644 index d78709d..0000000 --- a/.azure-pipelines.yml +++ /dev/null @@ -1,58 +0,0 @@ -resources: - repositories: - - repository: rustinfra - type: github - name: rust-lang/simpleinfra - endpoint: rust-lang - -variables: - - group: secrets - -pool: - vmImage: ubuntu-16.04 - -trigger: - - master -pr: - - master - -steps: - - - checkout: self - fetchDepth: 1 - # Store the GitHub authentication token in the git config. This allows the - # next steps to retrieve it. - persistCredentials: true - - - bash: | - set -e - rustc -vV - rustup update stable - rustup default stable - rustc -vV - displayName: Install Rust stable - - - bash: | - set -euo pipefail - # Extract the GitHub authentication token from the git config. The token - # will be used to authenticate with the GitHub API. - export GITHUB_TOKEN=$(git config -l | grep "\.extraheader=AUTHORIZATION" | awk '{print($3)}' | base64 -d | awk '{split($0,a,":"); print(a[2])}') - cargo run -- check --strict - displayName: Validate the repository contents - - - bash: cargo fmt -- --check - displayName: Run rustfmt - - - bash: cargo clippy -- -Dwarnings - displayName: Run clippy - - - bash: | - set -e - cargo run -- static-api build - echo "team-api.infra.rust-lang.org" > build/CNAME - displayName: Build the contents of the static API - condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) - - - template: azure-configs/static-websites.yml@rustinfra - parameters: - deploy_dir: build |