From cf05fd3e83d4b3f78cca1b923469e95384b2ff4a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 1 Sep 2019 19:25:44 -0700 Subject: [PATCH] Enable testing using azure pipelines --- README.md | 3 +++ azure-pipelines.yml | 20 ++++++++++++++++++++ tox.ini | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 azure-pipelines.yml diff --git a/README.md b/README.md index 7ecb185..e3a1fa7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](https://dev.azure.com/asottile/asottile/_apis/build/status/asottile.babi?branchName=master)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=29&branchName=master) +[![Azure DevOps coverage](https://img.shields.io/azure-devops/coverage/asottile/asottile/29/master.svg)](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=29&branchName=master) + babi ==== diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..6b0bd34 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,20 @@ +trigger: + branches: + include: [master, test-me-*] + tags: + include: ['*'] + +resources: + repositories: + - repository: asottile + type: github + endpoint: github + name: asottile/azure-pipeline-templates + ref: refs/tags/v0.0.16 + +jobs: +- template: job--pre-commit.yml@asottile +- template: job--python-tox.yml@asottile + parameters: + toxenvs: [py36, py37] + os: linux diff --git a/tox.ini b/tox.ini index 68f1ebd..3b88ea7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pypy3,py36,py37,pre-commit +envlist = py36,py37,pre-commit [testenv] deps = -rrequirements-dev.txt