Skip to content

Commit b069224

Browse files
authored
Merge pull request #21 from univention/travis
Add Travis configuration
2 parents bd8dc35 + 49c5f8b commit b069224

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: python
2+
python:
3+
- 2.7
4+
- 3.5
5+
- 3.7
6+
7+
install: pip install -U tox-travis
8+
9+
script: tox

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
'classifiers': filter(None, classifiers.split('\n')),
6363
'packages': ['notifier', ],
6464
'extras_require': {
65-
'testing': ['zope', 'twisted', 'pytest', 'pytest-cov'],
65+
'testing': ['zope', 'twisted', 'pytest', 'pytest-cov', 'mock', 'codecov'],
6666
},
6767
}
6868

6969
setup_args['tests_require'] = setup_args.get('install_requires', []).extend(
70-
setup_args.get('tests_require', []))
70+
setup_args.get('tests_require', ['zope', 'twisted', 'pytest', 'pytest-cov', 'PyQt4', 'mock', 'codecov']))
7171
setup(**setup_args)

tox.ini

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
[tox]
2-
envlist=begin, py27, py37, end
2+
envlist=begin, py27, py35, py37, end
33
skip_missing_interpreters = True
44

5-
65
[testenv]
76
extras = testing
7+
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
88
deps=coverage
99
pytest-cov
1010
pytest
1111
mock
12+
codecov>=1.4.0
1213
sitepackages=true
13-
commands = {envbindir}/pytest --cov {envsitepackagesdir}/notifier --cov-append --cov-report=term-missing --junitxml=junit-{envname}.xml
14-
14+
commands = {envbindir}/pytest --ignore=tests/test_qt.py --cov {envsitepackagesdir}/notifier --cov-append --cov-report=term-missing --cov-report=xml --junitxml=junit-{envname}.xml
15+
codecov -e TOXENV
1516

1617
[testenv:begin]
1718
deps = coverage
@@ -42,9 +43,11 @@ deps=
4243
[testenv:py34-novendor]
4344
deps=
4445

45-
[testenv:py37-novendor]
46+
[testenv:py35-novendor]
4647
deps=
4748

49+
[testenv:py37-novendor]
50+
deps=
4851

4952
[testenv:end]
5053
deps = coverage

0 commit comments

Comments
 (0)