Skip to content

Commit 58a4743

Browse files
gaborbernatambv
authored andcommitted
move from Travis to Azure (#16)
1 parent c034ce5 commit 58a4743

3 files changed

Lines changed: 46 additions & 51 deletions

File tree

.travis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

azure-pipelines.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
2+
resources:
3+
repositories:
4+
- repository: tox
5+
type: github
6+
endpoint: github
7+
name: tox-dev/azure-pipelines-template
8+
ref: refs/tags/0.2
9+
10+
trigger:
11+
batch: true
12+
branches:
13+
include:
14+
- master
15+
16+
pr:
17+
branches:
18+
include:
19+
- master
20+
21+
variables:
22+
PYTEST_ADDOPTS: "-v -v -ra --showlocals"
23+
PYTEST_XDIST_PROC_NR: 'auto'
24+
CI_RUN: 'yes'
25+
26+
jobs:
27+
- template: run-tox-env.yml@tox
28+
parameters:
29+
jobs:
30+
format_check: null
31+
merge: null
32+
type: null
33+
lint: null
34+
package_readme: null
35+
py38:
36+
image: [linux]
37+
py37:
38+
image: [linux, windows, macOs]
39+
py36:
40+
image: [linux, windows, macOs]
41+
dev: null
42+
coverage:
43+
with_toxenv: 'coverage' # generate .tox/.coverage, .tox/coverage.xml after test run
44+
for_envs: [py38, py37, py36]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 3.7.0
3-
envlist = format-check,
3+
envlist = format_check,
44
py37,
55
py36,
66
coverage,
@@ -34,7 +34,7 @@ commands = - seed-isort-config --application-directories .,tests
3434
black .
3535
isort -rc .
3636

37-
[testenv:format-check]
37+
[testenv:format_check]
3838
description = check that the source code is well formatted
3939
deps = {[testenv:format]deps}
4040
skip_install = {[testenv:format]skip_install}

0 commit comments

Comments
 (0)