[pygobject] coverage: don't just use the major python version number for coverage files names



commit 5ec1aea8ab4599a7a0945bd5754ce79c7c5cbef3
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sat Feb 17 18:13:47 2018 +0100

    coverage: don't just use the major python version number for coverage files names
    
    all py3 jobs wrote to the same file, oops..

 .gitlab-ci/test-docker.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh
index 31be3029..97d4805a 100755
--- a/.gitlab-ci/test-docker.sh
+++ b/.gitlab-ci/test-docker.sh
@@ -7,7 +7,7 @@ python --version
 python -m pip install git+https://github.com/pygobject/pycairo.git
 python -m pip install flake8 pytest pytest-faulthandler coverage
 
-PYVER=$(python -c "import sys; sys.stdout.write(str(sys.version_info[0]))")
+PYVER=$(python -c "import sys; sys.stdout.write(''.join(map(str, sys.version_info[:3])))")
 SOURCE_DIR="$(pwd)"
 PY_PREFIX="$(python -c 'import sys; sys.stdout.write(sys.prefix)')"
 COV_DIR="${SOURCE_DIR}/coverage"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]