changeset 34:7500a4ecb935

Preliminary steps towards tests (tox.ini, would-be testedwith decl)
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Thu, 10 Mar 2016 23:12:29 +0100
parents 6f57d125ed85
children 6dae5ed53f22
files mercurial_all_paths.py tox.ini
diffstat 2 files changed, 42 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial_all_paths.py	Sat Nov 28 09:58:28 2015 +0100
+++ b/mercurial_all_paths.py	Thu Mar 10 23:12:29 2016 +0100
@@ -10,7 +10,7 @@
 import mercurial.cmdutil
 from mercurial.i18n import _
 
-#pylint:disable=invalid-name,broad-except,line-too-long
+# pylint:disable=invalid-name,broad-except,line-too-long
 
 
 def _iter_over_paths(command, ui, repo, **opts):
@@ -90,3 +90,6 @@
         EXT_OPTS + _original_options('outgoing'),
         _('[-g GROUP] [--ignore-errors] <outgoing options>')),
 }
+
+testedwith = '2.7 2.9 3.0 3.3 3.6 3.7'
+buglink = 'https://bitbucket.org/Mekk/mercurial-all_paths/issues'
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tox.ini	Thu Mar 10 23:12:29 2016 +0100
@@ -0,0 +1,38 @@
+
+[tox]
+minversion = 1.8
+toxworkdir = {homedir}/.tox/work/mercurial/all_paths
+distshare = {homedir}/.tox/distshare
+skip_missing_interpreters = True
+#envlist = {py26,py27}-hg{27,29,30,33,36,37}
+envlist = {py26}-{hg27,hg29}, {py27}-hg{29,30,33,36,37}
+; sync with testedwith in .py!
+
+[testenv]
+passenv = HOME
+; setenv =
+;    WORK_DIR = {toxworkdir}/{envname}
+;    HGRCPATH = {toxworkdir}/{envname}/hgrc
+basepython =
+    py26: python2.6
+    py27: python2.7
+deps =
+    mercurial_extension_utils >= 1.2.0
+    cram >= 0.6
+    py26: unittest2     
+    hg27: Mercurial>=2.7,<2.8
+    hg28: Mercurial>=2.8,<2.9
+    hg29: Mercurial>=2.9,<3.0
+    hg30: Mercurial>=3.0,<3.1
+    hg31: Mercurial>=3.1,<3.2
+    hg32: Mercurial>=3.2,<3.3
+    hg33: Mercurial>=3.3,<3.4
+    hg34: Mercurial>=3.4,<3.5
+    hg35: Mercurial>=3.5,<3.6
+    hg36: Mercurial>=3.6,<3.7
+    hg37: Mercurial>=3.7,<3.8
+    hg38: Mercurial>=3.8,<3.9
+commands =
+    cram -v tests
+whitelist_externals =
+    mkdir