From 0b65df5b543fac4342165bae21ccc2daad683370 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 19 Apr 2019 11:27:12 -0400 Subject: [PATCH 1/2] Delete .travis.yml --- .travis.yml | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 .travis.yml 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 From 0ad22cb31cec7f9fd5801f6dbe3667ad57759939 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 19 Apr 2019 11:33:04 -0400 Subject: [PATCH 2/2] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines.yml 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'