From 03fc6c05e8abdb4f19e983c413678ac056e13aff Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 21 Feb 2019 20:45:48 +0200 Subject: [PATCH] Remove test jobs, keep lint --- .azure-pipelines/jobs/test.yml | 49 ---------------------------------- azure-pipelines.yml | 33 ----------------------- 2 files changed, 82 deletions(-) delete mode 100644 .azure-pipelines/jobs/test.yml diff --git a/.azure-pipelines/jobs/test.yml b/.azure-pipelines/jobs/test.yml deleted file mode 100644 index 49194ac8a..000000000 --- a/.azure-pipelines/jobs/test.yml +++ /dev/null @@ -1,49 +0,0 @@ -parameters: - name: '' # defaults for any parameters that aren't specified - vmImage: '' - -jobs: - -- job: ${{ parameters.name }} - pool: - vmImage: ${{ parameters.vmImage }} - - strategy: - matrix: - Python36: - python.version: '3.6' - Python37: - python.version: '3.7' - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - - script: | - python -m pip install --upgrade pip - python -m pip install --upgrade freezegun pytest pytest-cov requests_mock - python -m pip install -e . - displayName: 'Install dependencies' - - - script: | - pytest --cov pypistats --junitxml=junit/test-results.xml - displayName: 'Unit tests' - - - script: | - pypistats --help - pypistats recent --help - displayName: 'Test runs' - - - script: | - python -m pip install --upgrade codecov - codecov --name "Python $(python.version)" --build $(Build.BuildNumber) - condition: succeeded() - displayName: 'Upload to Codecov' - - - task: PublishTestResults@2 - inputs: - testResultsFiles: '**/test-results.xml' - testRunTitle: 'Python $(python.version)' - condition: succeededOrFailed() diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b6eac1ac9..ad8c10056 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,36 +10,3 @@ jobs: parameters: name: Lint vmImage: 'Ubuntu-16.04' - -- template: .azure-pipelines/jobs/test.yml - parameters: - name: Linux - vmImage: 'Ubuntu-16.04' - -- template: .azure-pipelines/jobs/test.yml - parameters: - name: macOS - vmImage: 'xcode9-macos10.13' - -- template: .azure-pipelines/jobs/test.yml - parameters: - name: Windows - vmImage: 'vs2017-win2016' - -- job: Publish - dependsOn: - - Lint - - Linux - - macOS - - Windows - pool: - vmImage: 'Ubuntu-16.04' - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.x' - architecture: 'x64' - - - script: python setup.py sdist - displayName: 'Build sdist'