forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Travis pipeline to ADO (Azure#828)
* Convert Travis pipeline to ADO. * Keep .travis.yml unchanged.
- Loading branch information
1 parent
ee419e9
commit c9fee44
Showing
1 changed file
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
resources: | ||
- repo: self | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- '*' | ||
|
||
jobs: | ||
- job: SourceStatic | ||
displayName: "Source Code Static Check" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.7' | ||
inputs: | ||
versionSpec: 3.7 | ||
- task: Bash@3 | ||
displayName: "Source Code Static Check" | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: scripts/ci/test_static.sh | ||
|
||
- job: IndexVerify | ||
displayName: "Verify Extensions Index" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.7' | ||
inputs: | ||
versionSpec: 3.7 | ||
- bash: | | ||
#!/usr/bin/env bash | ||
set -ev | ||
python ./scripts/ci/test_index.py -v | ||
displayName: "Verify Extensions Index" | ||
- job: TestsPython27 | ||
displayName: "Tests Python 2.7" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 2.7' | ||
inputs: | ||
versionSpec: 2.7 | ||
- task: Bash@3 | ||
displayName: "Tests Python 2.7" | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: scripts/ci/test_source.sh | ||
|
||
- job: TestsPython37 | ||
displayName: "Tests Python 3.7" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.7' | ||
inputs: | ||
versionSpec: 3.7 | ||
- task: Bash@3 | ||
displayName: "Tests Python 3.7" | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: scripts/ci/test_source.sh | ||
|
||
- job: LintModifiedExtensions | ||
displayName: "CLI Linter" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.7' | ||
inputs: | ||
versionSpec: 3.7 | ||
- task: Bash@3 | ||
displayName: "CLI Linter on Modified Extension" | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: scripts/ci/verified_modified_index.sh | ||
|
||
- job: IndexRefDocVerify | ||
displayName: "Verify Ref Docs" | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.7' | ||
inputs: | ||
versionSpec: 3.7 | ||
- task: Bash@3 | ||
displayName: "Verify Extension Ref Docs" | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: scripts/ci/test_index_ref_doc.sh |