Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert CI to CircleCI #592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
version: 2.1

executors:
python:
docker:
- image: cimg/python:3.9

jobs:
flake8_lint:
executor: python
steps:
- checkout
- run: pip install tox
- run: tox -e flake8
isort_lint:
executor: python
steps:
- checkout
- run: pip install tox
- run: tox -e isort
test:
parameters:
python:
type: string
docker:
- image: circleci/python:<< parameters.python >>
environment:
TOXENV: "py<< parameters.python >>"
steps:
- checkout
- run: echo 'export PATH=$HOME/.local/bin:$PATH' >> $BASH_ENV
- run: pip install --user tox
- run: tox
test_nooptionals:
parameters:
python:
type: string
docker:
- image: cimg/python:<< parameters.python >>
environment:
TOXENV: "py<< parameters.python >>-nooptionals"
steps:
- checkout
- run: pip install tox
- run: tox
test_pypy:
parameters:
python:
type: string
docker:
- image: pypy:<< parameters.python >>
environment:
TOXENV: "pypy<< parameters.python >>"
steps:
- checkout
- run: pip install tox
- run: tox


workflows:
version: 2
client_python:
jobs:
- flake8_lint
- isort_lint
- test:
matrix:
parameters:
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- test_nooptionals:
matrix:
parameters:
python:
- "2.7"
- "3.9"
- test_pypy:
matrix:
parameters:
python:
- "2.7"
- "3.7"
64 changes: 0 additions & 64 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@
'twisted': ['twisted'],
},
test_suite="tests",
python_requires=">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
Expand Down
23 changes: 7 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,46 +1,37 @@
[tox]
envlist = coverage-clean,py26,py27,py34,py35,py36,py37,py38,py39,pypy,pypy3,{py27,py39}-nooptionals,coverage-report,flake8,isort
envlist = coverage-clean,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9,pypy2.7,pypy3.7,{py2.7,py3.9}-nooptionals,coverage-report,flake8,isort


[base]
deps =
coverage
pytest

[testenv:py26]
; Last pytest and py version supported on py26 .
deps =
unittest2
py==1.4.31
pytest==2.9.2
coverage
futures

[testenv:py27]
[testenv:py2.7]
deps =
{[base]deps}
futures

[testenv:pypy]
[testenv:pypy2.7]
deps =
{[base]deps}
futures

[testenv]
deps =
{[base]deps}
{py27,py37,pypy,pypy3}: twisted
{py37,pypy3}: asgiref
{py2.7,py3.7,pypy2.7,pypy3.7}: twisted
{py3.7,pypy3.7}: asgiref
commands = coverage run --parallel -m pytest {posargs}

; Ensure test suite passes if no optional dependencies are present.
[testenv:py27-nooptionals]
[testenv:py2.7-nooptionals]
deps =
{[base]deps}
futures
commands = coverage run --parallel -m pytest {posargs}

[testenv:py39-nooptionals]
[testenv:py3.9-nooptionals]
commands = coverage run --parallel -m pytest {posargs}

[testenv:coverage-clean]
Expand Down