• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

menegazzo / travispy / 134
42%

Build:
DEFAULT BRANCH: master
Ran 22 Oct 2016 06:05PM UTC
Jobs 1
Files 19
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
134

Pull #39

travis-ci

web-flow
Test with tox

[tox](https://tox.readthedocs.io) makes testing with multiple python versions locally easy. It also allows the installation steps to be automated so users need just run 'tox' to run the tests.

diff --git a/.travis.yml b/.travis.yml
index e370346..15b3ca8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,16 +1,9 @@
 sudo: false
 language: python
-python:
-- 2.7
-- 3.4
-- 3.5
-- pypy
+python: 3.5
 install:
-- pip install pytest
-- pip install pytest-rerunfailures
-- pip install requests
-- pip install coveralls
+- pip install coveralls tox
 script:
-- coverage run --source=travispy setup.py test -a -rxs
+- tox
 after_success:
 - coveralls
diff --git a/requirements.txt b/requirements.txt
index 0eb446d..0bf1bae 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
-requests
+coverage
 pytest
-pytest-rerunfailures
\ No newline at end of file
+pytest-rerunfailures
+requests
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..e0f218a
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,8 @@
+[tox]
+envlist = py{27,34,35,py}
+
+[testenv]
+setenv =
+    PYTHONDONTWRITEBYTECODE=1
+deps = -rrequirements.txt
+commands = coverage run --source=travispy setup.py test -a -rxs
Pull Request #39: Test with tox

325 of 373 relevant lines covered (87.13%)

0.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
travispy/entities/user.py
2
100.0
travispy/entities/build.py
5
100.0
travispy/entities/_restartable.py
6
100.0
travispy/entities/branch.py
6
100.0
travispy/entities/_entity.py
10
100.0
travispy/entities/repo.py
17
100.0
travispy/travispy.py
Jobs
ID Job ID Ran Files Coverage
1 134.1 22 Oct 2016 06:05PM UTC 0
87.13
Travis Job 134.1
Source Files on build 134
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #134
  • Pull Request #39
  • PR Base - master (#132)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc