From 2d2cbe166a753e31de24b29713432b0bafa0c4be Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 25 Oct 2019 07:37:41 -0600 Subject: [PATCH] chore(CI): Fix indentation --- azure-pipelines.yml | 162 ++++++++++++++++++++++---------------------- 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b57c023..dc14cfd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -34,87 +34,87 @@ stages: $(Build.StagingDirectory)/tools/committed HEAD~..HEAD^2 --no-merge-commit -vv displayName: Committed condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) - - stage: Release - dependsOn: test - condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') - jobs: - - job: - strategy: - matrix: - windows: - imageName: 'vs2017-win2016' - target: 'x86_64-pc-windows-msvc' - crate_name: typos - mac: - imageName: 'macos-10.14' - target: 'x86_64-apple-darwin' - crate_name: typos - linux: - imageName: 'ubuntu-16.04' - target: 'x86_64-unknown-linux-gnu' - crate_name: typos - pool: - vmImage: $(imageName) - steps: - - template: azure/install-rust.yml@templates - - script: | - cargo rustc --target $(TARGET) --release --bin $(CRATE_NAME)-cli -- -C lto - displayName: Build - - task: CopyFiles@2 - displayName: Stage assets - condition: ne( variables['Agent.OS'], 'Windows_NT' ) - inputs: - sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release' - contents: $(crate_name) - targetFolder: '$(Build.BinariesDirectory)/' - - task: CopyFiles@2 - displayName: Stage assets on Windows - condition: eq( variables['Agent.OS'], 'Windows_NT' ) - inputs: - sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release' - contents: $(crate_name).exe - targetFolder: '$(Build.BinariesDirectory)/' - - task: ArchiveFiles@2 - displayName: Tarball assets - condition: ne( variables['Agent.OS'], 'Windows_NT' ) - inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name)' - archiveType: 'tar' - tarCompression: 'gz' - archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz' - - task: GithubRelease@0 - condition: ne( variables['Agent.OS'], 'Windows_NT' ) - inputs: - gitHubConnection: 'crate-ci-token' - repositoryName: 'crate-ci/typos' - action: 'edit' - target: '$(build.sourceVersion)' - tagSource: 'manual' - tag: '$(Build.SourceBranchName)' - assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz' - title: '$(Build.SourceBranchName)' - assetUploadMode: 'replace' - addChangeLog: true - - task: ArchiveFiles@2 - displayName: Zip assets - condition: eq( variables['Agent.OS'], 'Windows_NT' ) - inputs: - rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name).exe' - archiveType: 'zip' - archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip' - - task: GithubRelease@0 - condition: eq( variables['Agent.OS'], 'Windows_NT' ) - inputs: - gitHubConnection: 'crate-ci-token' - repositoryName: 'crate-ci/typos' - action: 'edit' - target: '$(build.sourceVersion)' - tagSource: 'manual' - tag: '$(Build.SourceBranchName)' - assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip' - title: '$(Build.SourceBranchName)' - assetUploadMode: 'replace' - addChangeLog: true +- stage: Release + dependsOn: test + condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/') + jobs: + - job: + strategy: + matrix: + windows: + imageName: 'vs2017-win2016' + target: 'x86_64-pc-windows-msvc' + crate_name: typos + mac: + imageName: 'macos-10.14' + target: 'x86_64-apple-darwin' + crate_name: typos + linux: + imageName: 'ubuntu-16.04' + target: 'x86_64-unknown-linux-gnu' + crate_name: typos + pool: + vmImage: $(imageName) + steps: + - template: azure/install-rust.yml@templates + - script: | + cargo rustc --target $(TARGET) --release --bin $(CRATE_NAME)-cli -- -C lto + displayName: Build + - task: CopyFiles@2 + displayName: Stage assets + condition: ne( variables['Agent.OS'], 'Windows_NT' ) + inputs: + sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release' + contents: $(crate_name) + targetFolder: '$(Build.BinariesDirectory)/' + - task: CopyFiles@2 + displayName: Stage assets on Windows + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + inputs: + sourceFolder: '$(Build.SourcesDirectory)/target/$(TARGET)/release' + contents: $(crate_name).exe + targetFolder: '$(Build.BinariesDirectory)/' + - task: ArchiveFiles@2 + displayName: Tarball assets + condition: ne( variables['Agent.OS'], 'Windows_NT' ) + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name)' + archiveType: 'tar' + tarCompression: 'gz' + archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz' + - task: GithubRelease@0 + condition: ne( variables['Agent.OS'], 'Windows_NT' ) + inputs: + gitHubConnection: 'crate-ci-token' + repositoryName: 'crate-ci/typos' + action: 'edit' + target: '$(build.sourceVersion)' + tagSource: 'manual' + tag: '$(Build.SourceBranchName)' + assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).tar.gz' + title: '$(Build.SourceBranchName)' + assetUploadMode: 'replace' + addChangeLog: true + - task: ArchiveFiles@2 + displayName: Zip assets + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + inputs: + rootFolderOrFile: '$(Build.BinariesDirectory)/$(crate_name).exe' + archiveType: 'zip' + archiveFile: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip' + - task: GithubRelease@0 + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + inputs: + gitHubConnection: 'crate-ci-token' + repositoryName: 'crate-ci/typos' + action: 'edit' + target: '$(build.sourceVersion)' + tagSource: 'manual' + tag: '$(Build.SourceBranchName)' + assets: '$(Build.ArtifactStagingDirectory)/$(crate_name)-$(Build.SourceBranchName)-$(TARGET).zip' + title: '$(Build.SourceBranchName)' + assetUploadMode: 'replace' + addChangeLog: true resources: repositories: