diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-18 17:08:26 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-01-19 14:03:53 +0100 |
commit | 2ccef77f240149891fe9e8f557c7afc951a91839 (patch) | |
tree | f237d71ad3d4676af39d563e57ecf371a3459eee /.gitlab-ci | |
parent | 812cdbfec0c8c9866c339a5eb01268672514d447 (diff) | |
download | pygobject-2ccef77f240149891fe9e8f557c7afc951a91839.tar.gz |
setup.py: add a "test" command which is equal to "make check" with autotools
Adds a "build_tests" command which builds all resources required for testing.
It has some simple dependency awareness and only rebuilds if any of the direct
sources have changed. Passing -f/--force will force a rebuild.
Adds a new "test" command which builds the main extension module in the source
directory, runs "build_tests" and finally runs all tests.
Extends the "distcheck" command to run the tests after extracting the source
distribution and run the distcheck command in the gitlab CI script.
Only tested on Linux.
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/test-docker.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh index 60a25761..4143face 100755 --- a/.gitlab-ci/test-docker.sh +++ b/.gitlab-ci/test-docker.sh @@ -28,3 +28,6 @@ if [[ "${PYVER}" == "2" ]]; then python -m pip install sphinx sphinx_rtd_theme python -m sphinx -W -a -E -b html -n docs docs/_build fi; + +# BUILD & TEST AGAIN USING SETUP.PY +xvfb-run -a python setup.py distcheck |