diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d7685acc..00000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: python -python: - # - "3.4" - # - "3.5" - - "3.6" - # - "3.7-dev" - # - "pypy" -- appears to hang - # - "pypy3" -matrix: - allow_failures: - - python: 3.7-dev -# command to install dependencies -install: "make" -# command to run tests -script: - - make test-readme - - make ci -cache: pip -jobs: - include: - - stage: test - script: - - make test-readme - - make ci - python: '2.7' - - stage: test - script: - - make test-readme - - make ci - python: '3.4' - - stage: test - script: - - make test-readme - - make ci - python: '3.5' - - stage: test - script: - - make test-readme - - make ci - python: '3.6' - - stage: test - script: - - make test-readme - - make ci - python: '3.7' - dist: xenial - - stage: coverage - python: '3.6' - script: codecov diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..cca5bd21 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,32 @@ +# Python package +# Create and test a Python package on multiple Python versions. +# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/python + +trigger: +- master + +pool: + vmImage: 'Ubuntu-16.04' +strategy: + matrix: + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + +steps: +- task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + displayName: 'Use Python $(python.version)' + +- script: | + python -m pip install --upgrade pip + pip install -r requirements.txt + displayName: 'Install dependencies' + +- script: | + pip install pytest pytest-azurepipelines + pytest + displayName: 'pytest'