Skip to content
Snippets Groups Projects
Commit e80029db authored by Georges Racinet's avatar Georges Racinet
Browse files

tests: a script to run them all

with the upcoming addition of more pytest options, it becomes somewhat
necessary to have a single script to avoid duplication in the CI
config and some pain for developers.

run-all-tests passes all subsequent arguments, allowing to add, e.g.,
HTML coverage generation options and the like.
parent 89c1842e
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
- flake8 heptapod setup.py hgext3rd
- pip install --user -r install-requirements.txt
- PYTHONPATH=/ci/repos/mercurial python -c "from mercurial import util; print(util.version())"
- PYTHONPATH=/ci/repos/mercurial ~/.local/bin/py.test --cov heptapod --cov hgext3rd.heptapod
- PYTHONPATH=/ci/repos/mercurial PATH=$HOME/.local/bin:$PATH ./run-all-tests
tests-hg-stable:
......@@ -43,7 +43,7 @@
- pip install --user hg+https://foss.heptapod.net/mercurial/hg-git@default#egg=hggit
- /ci/repos/mercurial/hg version --debug
- PYTHONPATH=/ci/repos/mercurial python -c "from mercurial import util; print(util.version())"
- PYTHONPATH=/ci/repos/mercurial ~/.local/bin/py.test --cov heptapod --cov hgext3rd.heptapod
- PYTHONPATH=/ci/repos/mercurial PATH=$HOME/.local/bin:$PATH ./run-all-tests
tests-hg-default:
stage: compat
......@@ -58,4 +58,4 @@
- pip install --user $EVOLVE_LOCAL_REPO
- pip install --user hg+https://foss.heptapod.net/mercurial/hg-git@default#egg=hggit
- PYTHONPATH=/ci/repos/mercurial python -c "from mercurial import util; print(util.version())"
- PYTHONPATH=/ci/repos/mercurial ~/.local/bin/py.test --cov heptapod --cov hgext3rd.heptapod
- PYTHONPATH=/ci/repos/mercurial PATH=$HOME/.local/bin:$PATH ./run-all-tests
#!/bin/sh
set -eu
py.test --cov heptapod --cov hgext3rd.heptapod $@
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment