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

Commit b2d6e34

Browse files
committed
travis/tox setup
1 parent 79e78c3 commit b2d6e34

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ before_install:
99
env:
1010
matrix:
1111
- TOX_ENV=py27
12+
- TOX_ENV=py34
13+
- TOX_ENV=py35
14+
- TOX_ENV=coverage
1215
global:
1316
secure: cKbIgpTJ1yjKLBxpCEiT6IH7NShDWZUE+BvnrAfc+ujCsR6LyLJcKxFQmKnWryJCqg7fp82Ep2bF2oDKzanAROar2xDY1SFGbai42seYMaFCw53YPGJ6u3VNCcfT0rN9BWgE7el/m4fjcD6CRsZYKArNNJbMX8csRt3uXXCFLso=
1417
install:
15-
- pip install -Ur requirements.txt
16-
- pip install -Ur dev_requirements.txt
18+
- "travis_retry pip install setuptools --upgrade"
19+
- "travis_retry pip install tox"
1720
script:
1821
- coverage run --source ethereum -m py.test --ignore ethereum/tests/test_vm.py --ignore ethereum/tests/test_state.py
1922
- coverage run --append --source ethereum -m py.test ethereum/tests/test_vm.py
2023
- coverage run --append --source ethereum -m py.test ethereum/tests/test_state.py
24+
script:
25+
- tox -e $TOX_ENV
2126
after_success:
2227
- coveralls
2328
notifications:

tox.ini

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
[tox]
2-
envlist = py27,coverage
2+
envlist =
3+
py27,
4+
py34,
5+
py35,
6+
coverage
37

48

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

17+
[testenv:py27]
18+
basepython=python2.7
19+
20+
[testenv:py34]
21+
basepython=python3.4
22+
23+
[testenv:py35]
24+
basepython=python3.5
25+
1326

1427
[testenv:coverage]
1528
deps =

0 commit comments

Comments
 (0)