8000 Convert CI to CircleCI · prometheus/client_python@6c6b9ce · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 6c6b9ce

Browse files
committed
Convert CI to CircleCI
Replace Travis with CircleCI. * Update Python version list. Signed-off-by: Ben Kochie <superq@gmail.com>
1 parent 02be07a commit 6c6b9ce

File tree

3 files changed

+70
-76
lines changed

3 files changed

+70
-76
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
version: 2.1
3+
4+
executors:
5+
python:
6+
docker:
7+
- image: cimg/python:3.9
8+
9+
jobs:
10+
flake8_lint:
11+
executor: python
12+
steps:
13+
- checkout
14+
- run: pip install tox
15+
- run: tox -e flake8
16+
isort_lint:
17+
executor: python
18+
steps:
19+
- checkout
20+
- run: pip install tox
21+
- run: tox -e isort
22+
test:
23+
parameters:
24+
python:
25+
type: string
26+
docker:
27+
- image: cimg/python:<< parameters.python >>
28+
environment:
29+
TOXENV: "py<< parameters.python >>"
30+
steps:
31+
- checkout
32+
- run: pip install tox
33+
- run: tox
34+
35+
36+
workflows:
37+
version: 2
38+
client_python:
39+
jobs:
40+
- flake8_lint
41+
- isort_lint
42+
- test:
43+
matrix:
44+
parameters:
45+
python:
46+
- "2.7"
47+
- "3.5"
48+
- "3.6"
49+
- "3.7"
50+
- "3.8"
51+
- "3.9"
52+
# TODO: Add more jobs.
53+
#- test_nooptionals:
54+
# matrix:
55+
# parameters:
56+
# python:
57+
# - 2.7
58+
# - 3.9
59+
#- test_pypy:
60+
# matrix:
61+
# parameters:
62+
# python:
63+
# - pypy
64+
# - pypy3

.travis.yml

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

tox.ini

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
[tox]
2-
envlist = coverage-clean,py26,py27,py34,py35,py36,py37,py38,pypy,pypy3,{py27,py38}-nooptionals,coverage-report,flake8,isort
2+
envlist = coverage-clean,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,pypy,pypy3,{py2.7,py3.9}-nooptionals,coverage-report,flake8,isort
33

44

55
[base]
66
deps =
77
coverage
88
pytest
99

10-
[testenv:py26]
11-
; Last pytest and py version supported on py26 .
12-
deps =
13-
unittest2
14-
py==1.4.31
15-
pytest==2.9.2
16-
coverage
17-
futures
18-
19-
[testenv:py27]
10+
[testenv:py2.7]
2011
deps =
2112
{[base]deps}
2213
futures
@@ -29,18 +20,18 @@ deps =
2920
[testenv]
3021
deps =
3122
{[base]deps}
32-
{py27,py37,pypy,pypy3}: twisted
33-
{py37,pypy3}: asgiref
23+
{py2.7,py3.7,pypy,pypy3}: twisted
24+
{py3.7,pypy3}: asgiref
3425
commands = coverage run --parallel -m pytest {posargs}
3526

3627
; Ensure test suite passes if no optional dependencies are present.
37-
[testenv:py27-nooptionals]
28+
[testenv:py2.7-nooptionals]
3829
deps =
3930
{[base]deps}
4031
futures
4132
commands = coverage run --parallel -m pytest {posargs}
4233

43-
[testenv:py38-nooptionals]
34+
[testenv:py3.9-nooptionals]
4435
commands = coverage run --parallel -m pytest {posargs}
4536

4637
[testenv:coverage-clean]

0 commit comments

Comments
 (0)
0