Bug 1076810 - RelEng CI tests should be available over the internet, not just from VPN:
authorPeter Moore <pmoore@mozilla.com>
Fri, 19 Dec 2014 20:15:57 +0100
changeset 5274 ffe43382c02d24914cb0a3a1014ea88a5c6f81c7
parent 5273 2399669ab652088d0d4d32ee9b1f52d912e43f7a
child 5275 f91334042f321e01c9a3dfa8806c16aa7a04430a
push id3915
push userpmoore@mozilla.com
push dateFri, 19 Dec 2014 19:17:21 +0000
bugs1076810
Bug 1076810 - RelEng CI tests should be available over the internet, not just from VPN: This patch: 1) Colourises the test output, making it easier to see at a glance which tests passed/failed 2) Publishes the coverage reports to coveralls (and does not cause build to fail if publish fails) 3) Adds a README.md to tools, for getting an overview when viewing in github r=rail
.travis.yml
README.md
tox.ini
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,19 +3,22 @@ python:
   - "2.7"
 
 before_script:
   - git config --global user.email "travis@travis-ci.org"
   - git config --global user.name "Travis McTravis"
   - cp lib/python/mozilla_buildtools/test/hgrc ~/.hgrc
 
 install:
-  - "pip install tox"
+  - pip install tox
 
 script:
-  - "tox"
+  - tox
+
+after_script:
+  - tox -e py27-coveralls
 
 # currently cannot customise per user fork, see:
 # https://github.com/travis-ci/travis-ci/issues/1094
 notifications:
   irc: "irc.mozilla.org#releng"
   on_success: always
   on_failure: always
new file mode 100644
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+# Tools
+This repository contains tools used by Mozilla Release Engineering. This repository
+is checked out on Buildbot masters and Buildbot slaves.
+
+This repository is a downstream read-only copy of:
+https://hg.mozilla.org/build/tools/
+
+To submit a patch, please create a bug on http://bugzilla.mozilla.org/ under
+Product: Release Engineering, Component: Tools.
+
+To run tests:
+```
+pip install tox
+tox
+```
+
+Please also see:
+* https://github.com/mozilla/build-buildbotcustom
+* https://github.com/mozilla/build-buildbot-configs
--- a/tox.ini
+++ b/tox.ini
@@ -1,38 +1,45 @@
 [tox]
 envlist = py27-hg2.6
 # py27-hg3.1 is also available
 
 [base]
 deps =
     nose==1.3.0
+    rednose==0.4.1
     coverage==3.6
     pep8==1.4.3
     jinja2==2.6
     mock==1.0.1
     webob==1.2.3
     gevent==0.13.8
     IPy==0.81
 
 [testenv]
 basepython = python2.7
 setenv =
-    PYTHONPATH = {toxinidir}/lib/python/vendor/poster-0.8.1:{toxinidir}/lib/python:{toxinidir}/lib/python/vendor:{toxinidir}/sut_tools:$PYTHONPATH
+    PYTHONPATH = {toxinidir}/lib/python/vendor/poster-0.8.1:{toxinidir}/lib/python:{toxinidir}/lib/python/vendor:{toxinidir}/sut_tools
 
 commands =
     coverage erase
-    coverage run --branch --source {toxinidir}/lib/python {envbindir}/nosetests -v --with-xunit {toxinidir}/lib/python
+    coverage run --branch --source {toxinidir}/lib/python {envbindir}/nosetests -v --with-xunit --rednose --force-color {toxinidir}/lib/python
 
 
 [testenv:py27-hg2.6]
 deps =
     {[base]deps}
     mercurial==2.6.2
 
 [testenv:py27-hg3.1]
 deps =
     {[base]deps}
     mercurial==3.1.2
 
+[testenv:py27-coveralls]
+deps=
+    python-coveralls==2.4.3
+commands=
+    coveralls
+
 [pep8]
 max-line-length = 159
 exclude = vendor,.tox,