summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-01-20 12:22:41 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-01-20 12:22:41 +0100
commitefb19909ebf15c8bdbd0b4acfe0046a512ba3b82 (patch)
tree920bbbbf5e8380b951bd8e30dea8832604dfc0a0 /.gitlab-ci
parent722ef028739b1e3e585f49418a98efa98834bc02 (diff)
downloadpygobject-efb19909ebf15c8bdbd0b4acfe0046a512ba3b82.tar.gz
gitlab-ci: switch to a non-srcdir build
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/test-docker.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh
index e0386b60..c371f715 100755
--- a/.gitlab-ci/test-docker.sh
+++ b/.gitlab-ci/test-docker.sh
@@ -13,8 +13,12 @@ export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$((${RANDOM} % 255 + 1))
PYVER=$(python -c "import sys; sys.stdout.write(str(sys.version_info[0]))")
+SOURCE_DIR="$(pwd)"
+mkdir /tmp/build
+cd /tmp/build
+
# BUILD
-./autogen.sh --with-python=python
+"${SOURCE_DIR}"/autogen.sh --with-python=python
make
# TESTS
@@ -23,6 +27,8 @@ xvfb-run -a make check
# CODE QUALITY CHECKS
make check.quality
+cd "${SOURCE_DIR}"
+
# DOCUMENTATION CHECKS
if [[ "${PYVER}" == "2" ]]; then
python -m pip install sphinx sphinx_rtd_theme