Skip to content

Commit b966916

Browse files
authored
Add Azure Pipelines example
1 parent e25d7b3 commit b966916

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

azure-pipelines.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Azure Pipelines configuration
2+
3+
trigger:
4+
- master
5+
6+
pool:
7+
vmImage: 'ubuntu-latest'
8+
strategy:
9+
matrix:
10+
Python35:
11+
python.version: '3.5'
12+
Python36:
13+
python.version: '3.6'
14+
Python37:
15+
python.version: '3.7'
16+
17+
steps:
18+
- task: UsePythonVersion@0
19+
inputs:
20+
versionSpec: '$(python.version)'
21+
displayName: 'Use Python $(python.version)'
22+
23+
- script: |
24+
python -m pip install --upgrade pip
25+
pip install coverage
26+
displayName: 'Install coverage'
27+
28+
- script: |
29+
coverage run tests.py
30+
displayName: 'Run tests'
31+
32+
- script: |
33+
bash <(curl -s https://codecov.io/bash)
34+
displayName: 'Upload to codecov.io'

0 commit comments

Comments
 (0)