Skip to content

Commit 03fc8ef

Browse files
author
Sergi Almacellas Abellana
committed
Add travis and tox
Closes kubernetes-client#3
1 parent 7c8e59b commit 03fc8ef

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
env:
4+
- TOXENV=py36
5+
- TOXENV=py35
6+
- TOXENV=py34
7+
- TOXENV=py27
8+
- TOXENV=update-pep8
9+
- TOXENV=coverage,codecov
10+
11+
install:
12+
- pip install tox
13+
14+
script:
15+
- tox

tox.ini

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tox]
2+
skipsdist = True
3+
envlist = py27, py34, py35, py36
4+
5+
[testenv]
6+
passenv = TOXENV CI TRAVIS TRAVIS_*
7+
commands =
8+
python -V
9+
pip install nose
10+
nosetests []
11+
12+
[testenv:coverage]
13+
commands =
14+
python -V
15+
pip install nose, coverage
16+
nosetests --with-coverage --cover-package=kubernetes.config,kubernetes.watch --cover-tests
17+
18+
[testenv:codecov]
19+
commands =
20+
pip install codecov
21+
codecov

0 commit comments

Comments
 (0)