Skip to content

Commit 8037b5f

Browse files
committed
Fixed tox/travis settings
1 parent 01fbee4 commit 8037b5f

File tree

2 files changed

+16
-32
lines changed

2 files changed

+16
-32
lines changed

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
language: python
22

3-
python:
4-
- "2.7"
5-
- "3.3"
6-
- "3.4"
7-
- "3.5"
8-
- "3.6"
9-
- "3.7"
3+
matrix:
4+
include:
5+
- python: 2.7
6+
- python: 3.5
7+
- python: 3.6
8+
- python: 3.7
9+
dist: xenial
10+
sudo: true
1011

1112
install:
1213
- pip install virtualenv tox-travis coveralls

tox.ini

+8-25
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,25 @@
11
[tox]
2-
envlist = mypy,cov-init,py27,py33,py34,py35,py36,py37,cov-report
2+
envlist = mypy,py27,py35,py36,py37
33

44
[travis]
55
python =
66
2.7: py27,
7-
3.3: py33,
8-
3.4: py34,
97
3.5: py35,
108
3.6: py36,
119
3.7: py37, mypy
1210

1311
[testenv]
1412
description = run the test with {basepython}
15-
setenv =
16-
COVERAGE_FILE = .coverage.{envname}
17-
deps = -rrequirements.txt
18-
commands = coverage run --source ./pydfs_lineup_optimizer -m unittest discover -s tests/
13+
passenv = TRAVIS TRAVIS_*
14+
deps =
15+
-rrequirements.txt
16+
coveralls
17+
commands =
18+
coverage run --source ./pydfs_lineup_optimizer -m unittest discover -s tests/
19+
coveralls
1920
whitelist_externals = coverage
2021

2122
[testenv:mypy]
2223
description = check typing
2324
deps = mypy
2425
commands = python3 -m mypy -p pydfs_lineup_optimizer
25-
26-
[testenv:cov-init]
27-
description = Init test coverage
28-
setenv =
29-
COVERAGE_FILE = .coverage
30-
deps = coverage
31-
commands =
32-
coverage erase
33-
34-
35-
[testenv:cov-report]
36-
description = Create coverage report
37-
setenv =
38-
COVERAGE_FILE = .coverage
39-
deps = coverage
40-
commands =
41-
coverage combine
42-
coverage report

0 commit comments

Comments
 (0)