Skip to content

Commit 35884c7

Browse files
committed
Added the azure pipelines for the ubuntu-16.04,18,04 and macOS-10.14,10.15
Signed-off-by: Pratikrocks <pratikrocks.dey11@gmail.com>
1 parent 6778882 commit 35884c7

3 files changed

Lines changed: 119 additions & 0 deletions

File tree

azure-pipelines.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
jobs :
2+
3+
- template: etc/ci/azure-linux.yml
4+
parameters:
5+
job-name: vm_ubuntu-16.04
6+
image_name: ubuntu-16.04
7+
python_versions: ['2.7']
8+
test_suites:
9+
deltacode_ubuntu-16.04: |
10+
"bin/py.test"
11+
release_ubuntu-16.04: |
12+
"./etc/release/release.sh"
13+
14+
- template: etc/ci/azure-linux.yml
15+
parameters:
16+
job-name: vm_ubuntu-18.04
17+
image_name: ubuntu-18.04
18+
python_versions: ['2.7']
19+
test_suites:
20+
deltacode_ubuntu-18.04: |
21+
"bin/py.test"
22+
release_ubuntu-18.04: |
23+
"./etc/release/release.sh"
24+
25+
26+
- template: etc/ci/azure-mac.yml
27+
parameters:
28+
job-name: vm_macos-10.15
29+
image_name: macos-10.15
30+
python_versions: ['2.7']
31+
test_suites:
32+
deltacode_macOS-10.15: |
33+
"bin/py.test"
34+
release_macOS-10.15: |
35+
"./etc/release/release.sh"
36+
37+
- template: etc/ci/azure-mac.yml
38+
parameters:
39+
job-name: vm_macos-10.14
40+
image_name: macos-10.14
41+
python_versions: ['2.7']
42+
test_suites:
43+
deltacode_macOS-10.14: |
44+
"bin/py.test"
45+
release_macOS-10.14: |
46+
"./etc/release/release.sh"

etc/ci/azure-linux.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
parameters:
2+
job_name: ''
3+
image_name: 'ubuntu-16.04'
4+
python_versions: []
5+
test_suites: {}
6+
python_architecture: x64
7+
8+
jobs:
9+
- job: ${{ parameters.job_name }}
10+
11+
pool:
12+
vmImage: ${{ parameters.image_name }}
13+
14+
strategy:
15+
matrix:
16+
${{ each pyver in parameters.python_versions }}:
17+
${{ each tsuite in parameters.test_suites }}:
18+
${{ format('py{0} {1}', pyver, tsuite.key) }}:
19+
python_version: ${{ pyver }}
20+
test_suite_label: ${{ tsuite.key }}
21+
test_suite: ${{ tsuite.value }}
22+
23+
steps:
24+
- checkout: self
25+
fetchDepth: 10
26+
27+
- task: UsePythonVersion@0
28+
inputs:
29+
versionSpec: '$(python_version)'
30+
architecture: '${{ parameters.python_architecture }}'
31+
displayName: 'Install Python $(python_version)'
32+
33+
- script: ./configure
34+
displayName: 'Run Configure'
35+
36+
- script: $(test_suite)
37+
displayName: 'Run $(test_suite_label) tests with py$(python_version) on ${{ parameters.job_name }}'

etc/ci/azure-mac.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
parameters:
2+
job_name: ''
3+
image_name: 'macOS-10.14'
4+
python_versions: []
5+
test_suites: {}
6+
python_architecture: x64
7+
8+
jobs:
9+
- job: ${{ parameters.job_name }}
10+
11+
pool:
12+
vmImage: ${{ parameters.image_name }}
13+
14+
strategy:
15+
matrix:
16+
${{ each pyver in parameters.python_versions }}:
17+
${{ each tsuite in parameters.test_suites }}:
18+
${{ format('py{0} {1}', pyver, tsuite.key) }}:
19+
python_version: ${{ pyver }}
20+
test_suite_label: ${{ tsuite.key }}
21+
test_suite: ${{ tsuite.value }}
22+
steps:
23+
- checkout: self
24+
fetchDepth: 10
25+
26+
- task: UsePythonVersion@0
27+
inputs:
28+
versionSpec: '$(python_version)'
29+
architecture: '${{ parameters.python_architecture }}'
30+
displayName: 'Install Python $(python_version)'
31+
32+
- script: ./configure
33+
displayName: 'Run Configure'
34+
35+
- script: $(test_suite)
36+
displayName: 'Run $(test_suite_label) tests with py$(python_version) on ${{ parameters.job_name }}'

0 commit comments

Comments
 (0)