Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit dfee5ea

Browse files
committed
travis/tox setup
1 parent 886270d commit dfee5ea

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

.coveragerc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ omit =
99
*/ethereum/fastvm.py
1010
*/ethereum/spv.py
1111

12-
[report]
1312
exclude_lines =
1413
pragma: no cover
1514
def __repr__

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: python
2-
python: 2.7
2+
python: 3.5
33
sudo: required
44
dist: trusty
55
before_install:
@@ -9,17 +9,23 @@ before_install:
99
env:
1010
matrix:
1111
- TOX_ENV=py27
12+
- TOX_ENV=py34
13+
- TOX_ENV=py35
1214
global:
1315
secure: cKbIgpTJ1yjKLBxpCEiT6IH7NShDWZUE+BvnrAfc+ujCsR6LyLJcKxFQmKnWryJCqg7fp82Ep2bF2oDKzanAROar2xDY1SFGbai42seYMaFCw53YPGJ6u3VNCcfT0rN9BWgE7el/m4fjcD6CRsZYKArNNJbMX8csRt3uXXCFLso=
1416
install:
15-
- pip install -Ur requirements.txt
16-
- pip install -Ur dev_requirements.txt
17+
- "travis_retry pip install setuptools --upgrade"
18+
- "travis_retry pip install tox"
1719
script:
1820
- coverage run --source ethereum -m py.test --ignore ethereum/tests/test_vm.py --ignore ethereum/tests/test_state.py
1921
- coverage run --append --source ethereum -m py.test ethereum/tests/test_vm.py
2022
- coverage run --append --source ethereum -m py.test ethereum/tests/test_state.py
23+
script:
24+
- tox -e $TOX_ENV
2125
after_success:
2226
- coveralls
27+
after_script:
28+
- cat .tox/$TOX_ENV/log/*.log
2329
notifications:
2430
slack:
2531
secure: W/UAhQ/GgYwMWrl3aiVAVOWr4WGdWrxUOX/rTB3ZgwDwGqDYLzQO5UqbsQlo1JXPZ6JOWfIPMURhHu7DSfue9dBW6xQ+NL+bFHe9lSXG4nqFK3IjezYyTBzNRJRDbGUvSSqgj6D5cwhJ8BjfUIRPbJz3CxL64KmsNXezEaMY60w=

tox.ini

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
[tox]
2-
envlist = py27,coverage
3-
2+
envlist =
3+
py27,
4+
py34,
5+
py35
46

57
[testenv]
6-
setenv =
7-
PYTHONPATH = {toxinidir}:{toxinidir}/ethereum
8-
commands = coverage run --source=ethereum --branch -m py.test {posargs}
8+
commands=
9+
coverage run --source ethereum -m py.test --ignore ethereum/tests/test_vm.py --ignore ethereum/tests/test_state.py
10+
coverage run --append --source ethereum -m py.test ethereum/tests/test_vm.py
11+
coverage run --append --source ethereum -m py.test ethereum/tests/test_state.py
12+
coverage report --show-missing
913
deps =
10-
-r{toxinidir}/requirements.txt
14+
coverage
1115
-r{toxinidir}/dev_requirements.txt
1216

17+
[testenv:py27]
18+
basepython=python2.7
1319

14-
[testenv:coverage]
15-
deps =
16-
coverage
17-
skip_install = true
18-
commands =
19-
coverage report --show-missing
20+
[testenv:py34]
21+
basepython=python3.4
22+
23+
[testenv:py35]
24+
basepython=python3.5

0 commit comments

Comments
 (0)