Skip to content

Commit 5fa4bd3

Browse files
committed
Migrate CI to azure pipelines
1 parent b7328f8 commit 5fa4bd3

File tree

3 files changed

+43
-53
lines changed

3 files changed

+43
-53
lines changed

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
CrateDB Python Client
33
=====================
44

5-
.. image:: https://img.shields.io/travis/crate/crate-python.svg
6-
:target: https://travis-ci.org/crate/crate-python
7-
:alt: TravisCI
5+
.. image:: https://dev.azure.com/cratedb/crate-python/_apis/build/status/crate.crate-python?branchName=master
6+
:target: https://dev.azure.com/cratedb/crate-python/_build/latest?definitionId=2&branchName=master
7+
:alt: Azure Pipeline
88

99
.. image:: https://img.shields.io/pypi/v/crate.svg
1010
:target: https://pypi.python.org/pypi/crate/

azure-pipelines.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
jobs:
3+
- job: 'Test'
4+
pool:
5+
vmImage: 'Ubuntu 16.04'
6+
strategy:
7+
matrix:
8+
Python34:
9+
python.version: '3.4'
10+
sqla.version: '1.2.18'
11+
Python35:
12+
python.version: '3.5'
13+
sqla.version: '1.2.18'
14+
Python36:
15+
python.version: '3.6'
16+
sqla.version: '1.2.18'
17+
Python37-SA-1.1:
18+
python.version: '3.7'
19+
sqla.version: '1.1.15'
20+
Python37-SA-1.2:
21+
python.version: '3.7'
22+
sqla.version: '1.2.18'
23+
24+
steps:
25+
- task: UsePythonVersion@0
26+
inputs:
27+
versionSpec: '$(python.version)'
28+
architecture: 'x64'
29+
30+
- script: |
31+
python -m pip install --upgrade pip
32+
python bootstrap.py
33+
sed -ir 's/SQLAlchemy.*/SQLAlchemy = $(sqla.version)/g' versions.cfg
34+
bin/buildout -n -c base.cfg
35+
displayName: 'Install dependencies'
36+
37+
- script: |
38+
bin/flake8
39+
bin/coverage run bin/test -vv1
40+
displayName: 'test'

0 commit comments

Comments
 (0)