Browse Source

Travis-CI (.org -> .com) Integration Support (#381)

pull/382/head
Chris Caron 4 years ago committed by GitHub
parent
commit
0b60e99aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .travis.yml
  2. 3
      setup.py
  3. 12
      tox.ini

8
.travis.yml

@ -19,8 +19,10 @@ matrix:
env: TOXENV=py37
- python: "3.8"
env: TOXENV=py38
- python: "3.9-dev"
- python: "3.9"
env: TOXENV=py39
- python: "3.9-dev"
env: TOXENV=py39-dev
- python: "pypy2.7-6.0"
env: TOXENV=pypy
- python: "pypy3.5-7.0"
@ -28,7 +30,9 @@ matrix:
install:
- pip install babel
- pip install .
# upgrade tox, pip, and virtualenv so Python 3.6 will build crytography:
# https://travis-ci.community/t/pip-install-cryptography-fails-on-py36/11233
- pip install -U tox pip virtualenv
- pip install codecov
- pip install -r dev-requirements.txt
- pip install -r requirements.txt

3
setup.py

@ -106,6 +106,5 @@ setup(
),
entry_points={'console_scripts': console_scripts},
python_requires='>=2.7',
setup_requires=['pytest-runner', 'babel', ],
tests_require=open('dev-requirements.txt').readlines(),
setup_requires=['babel', ],
)

12
tox.ini

@ -1,5 +1,5 @@
[tox]
envlist = py27,py35,py36,py37,py38,py39,pypy,pypy3,coverage-report
envlist = py27,py35,py36,py37,py38,py39,py39-dev,pypy,pypy3,coverage-report
[testenv]
@ -75,6 +75,16 @@ commands =
coverage run --parallel -m pytest {posargs}
flake8 . --count --show-source --statistics
[testenv:py39-dev]
deps=
dbus-python
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
python setup.py compile_catalog
coverage run --parallel -m pytest {posargs}
flake8 . --count --show-source --statistics
[testenv:pypy]
deps=
-r{toxinidir}/requirements.txt

Loading…
Cancel
Save