Skip to content

Commit

Permalink
Convert Travis pipeline to ADO (Azure#828)
Browse files Browse the repository at this point in the history
* Convert Travis pipeline to ADO.

* Keep .travis.yml unchanged.
  • Loading branch information
tjprescott authored Jul 1, 2019
1 parent ee419e9 commit c9fee44
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions azure-pipelines.yml
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

0 comments on commit c9fee44

Please sign in to comment.