@@ 1,8 1,21 @@
-[testenv]
-setenv = HGRCPATH = {toxworkdir}/.hgrc
-basepython = /usr/bin/python
+[tox]
+min_version = 4.0.0
+envlist = py3-hg{5.8,5.9,6.0,6.1,6.2,6.3}
+
+[testenv:py3]
+basepython = python3
+
+[testenv:py3-hg{5.8,5.9,6.0,6.1,6.2,6.3}]
+allowlist_externals = tree
-commands =
- pip install mercurial==4.7
- hg help confman
+[testenv]
+commands = python tests/run-tests.py --with-hg {env_dir}/bin/hg
+deps =
+ hg-evolve
+ hg5.8: mercurial>5.8,<5.9
+ hg5.9: mercurial>5.9,<6.0
+ hg6.0: mercurial>6.0,<6.1
+ hg6.1: mercurial>6.1,<6.2
+ hg6.2: mercurial>6.2,<6.3
+ hg6.3: mercurial>6.3,<6.4