From 5c518263e79f741f4c5c39dc4d329d91b6636aac Mon Sep 17 00:00:00 2001 From: Bernat Gabor Date: Sat, 25 May 2019 14:09:40 +0100 Subject: [PATCH] move from Azure to Travis --- .travis.yml | 49 --------------------------------------------- azure-pipelines.yml | 44 ++++++++++++++++++++++++++++++++++++++++ tox.ini | 4 ++-- 3 files changed, 46 insertions(+), 51 deletions(-) delete mode 100644 .travis.yml create mode 100644 azure-pipelines.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e5d61f2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -dist: xenial -language: python -cache: pip - -env: - TOXENV=py - -jobs: - include: - - name: "check wheel metadata correct" - python: 3.7 - env: - - TOXENV=package_readme - - name: "type checker" - python: 3.7 - env: - - TOXENV=type - - name: "style checker" - python: 3.7 - env: - - TOXENV=lint - - name: "test dev env creation" - python: 3.7 - env: - - TOXENV=dev - - name: "format checker" - python: 3.7 - env: - - TOXENV=format-check - - name: "run test suite with python 3.6" - python: 3.6 - - name: "run test suite with python 3.7" - python: 3.7 - - name: "run test suite with python 3.8-dev" - python: 3.8-dev - - name: "run ourselves on our stubs" - python: 3.7 - env: - - TOXENV=merge - - -install: -- sudo apt-get -y install pandoc -- pip install -U pip setuptools -- pip install -U --force-reinstall tox==3.9.0 -- tox --notest --skip-missing-interpreters false -vv - -script: -- tox diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..4fe821e --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,44 @@ +name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr) +resources: + repositories: + - repository: tox + type: github + endpoint: github + name: tox-dev/azure-pipelines-template + ref: refs/tags/0.2 + +trigger: + batch: true + branches: + include: + - master + +pr: + branches: + include: + - master + +variables: + PYTEST_ADDOPTS: "-v -v -ra --showlocals" + PYTEST_XDIST_PROC_NR: 'auto' + CI_RUN: 'yes' + +jobs: +- template: run-tox-env.yml@tox + parameters: + jobs: + format_check: null + merge: null + type: null + lint: null + package_readme: null + py38: + image: [linux] + py37: + image: [linux, windows, macOs] + py36: + image: [linux, windows, macOs] + dev: null + coverage: + with_toxenv: 'coverage' # generate .tox/.coverage, .tox/coverage.xml after test run + for_envs: [py38, py37, py36] diff --git a/tox.ini b/tox.ini index f8e720e..b90d961 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.7.0 -envlist = format-check, +envlist = format_check, py37, py36, coverage, @@ -34,7 +34,7 @@ commands = - seed-isort-config --application-directories .,tests black . isort -rc . -[testenv:format-check] +[testenv:format_check] description = check that the source code is well formatted deps = {[testenv:format]deps} skip_install = {[testenv:format]skip_install}