diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f26edd5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: python -python: - - 2.7 - - 3.4 - - 3.5 - - 3.6 -env: - - STYLE=1 - # keep this list in sync with what's in tox.ini - - PYMONGO=pymongo33 - - PYMONGO=pymongo34 - - PYMONGO=pymongo35 - - PYMONGO=pymongo36 - - PYMONGO=pymongo37 - - PYMONGO=pymongo38 -matrix: - exclude: - # style runs on 2.7 only so that it runs first - - env: STYLE=1 - python: 3.4 - - env: STYLE=1 - python: 3.5 - - env: STYLE=1 - python: 3.6 -services: docker -install: pip install -c travis-constraints.txt tox tox-docker -script: - - if test -n "$PYMONGO"; then tox -e $(tox -l | grep "^$PYMONGO" | tr "\n" ","); fi - - if test -n "$STYLE" ; then tox -e style; fi diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..fa19092 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,37 @@ +jobs: +- job: 'Style' + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '3.7' + architecture: 'x64' + - script: | + pip install tox + tox -e style + displayName: 'tox -e style' + +- job: 'Test' + pool: + vmImage: 'ubuntu-16.04' + strategy: + matrix: + Python27: + python.version: '2.7' + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + maxParallel: 4 + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + architecture: 'x64' + + - script: | + pip install tox tox-docker + tox + displayName: 'tox' diff --git a/travis-constraints.txt b/travis-constraints.txt deleted file mode 100644 index 5fdbdf6..0000000 --- a/travis-constraints.txt +++ /dev/null @@ -1 +0,0 @@ -tox<3.1;python_version=="3.4"