File tree 5 files changed +10
-9
lines changed
5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,15 @@ services:
16
16
services :
17
17
- docker
18
18
19
- env :
20
- - NODE1=0.0.0.0
21
-
22
19
before_install :
23
20
- docker pull quay.io/coreos/etcd:v3.3
24
- - docker run -d -p 2379:2379 -p 2380:2380 --name etcd3 quay.io/coreos/etcd:v3.3 etcd --name node1 \
25
- --initial-advertise-peer-urls http://${NODE1}:2380 --listen-peer-urls http://${NODE1}:2380 \
26
- --advertise-client-urls http://${NODE1}:2379 --listen-client-urls http://${NODE1}:2379 \
27
- --initial-cluster node1=http://${NODE1}:2380
21
+ - docker run -d -p 2379:2379 -p 2380:2380 --name etcd3 quay.io/coreos/etcd:v3.3 etcd --name node1 --initial-advertise-peer-urls http://0.0.0.0:2380 --listen-peer-urls http://0.0.0.0:2380 --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379 --initial-cluster node1=http://0.0.0.0:2380
28
22
- docker ps
29
23
- sudo docker cp etcd3:/usr/local/bin/etcdctl /usr/bin/etcdctl
30
24
- which etcdctl
31
25
32
26
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
33
- install : pip install -U tox-travis
27
+ install : pip install -U tox-travis codecov
34
28
35
29
# command to run tests, e.g. python setup.py test
36
30
script : tox
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ include HISTORY.rst
4
4
include LICENSE
5
5
include README.md
6
6
include requirements*.txt
7
+ include *.yml
7
8
8
9
recursive-include tests *
9
10
recursive-include etcd3 *
Original file line number Diff line number Diff line change
1
+ codecov :
2
+ token : 0eef715f-ce0c-451f-bb2f-9f1806d3d95b
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ coverage>=4.1
10
10
mock==2.0.0
11
11
PyYAML>=3.11
12
12
pytest>=2.9.2
13
+ pytest-cov
13
14
pytest-runner>=2.11.1
14
15
inflection>=0.3.1
15
16
isort==4.3.4
Original file line number Diff line number Diff line change @@ -28,14 +28,17 @@ commands =
28
28
py.test --basetemp ={envtmpdir} --ignore =tests/test_py3/
29
29
30
30
[testenv]
31
+ passenv = TOXENV CI TRAVIS TRAVIS_*
31
32
setenv =
32
33
PYTHONPATH = {toxinidir}
33
34
LC_ALL =en_US.UTF-8
34
35
LANG =en_US.UTF-8
35
36
deps =
36
37
-r{toxinidir}/requirements_dev.txt
38
+ codecov>=1.4.0
37
39
commands =
38
- py.test --basetemp ={envtmpdir} -s -v
40
+ py.test --basetemp ={envtmpdir} -s -v --cov =etcd3/
41
+ codecov
39
42
40
43
41
44
; If you want to make tox run the tests with the same versions, create a
You can’t perform that action at this time.
0 commit comments