]> granicus.if.org Git - graphviz/commitdiff
Propagate OS ID to pytest
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 24 Sep 2020 15:46:31 +0000 (17:46 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
.gitlab-ci.yml
ci/install-packages.sh

index 90414abc5471538763464be2e0c79b3bff071131..5d6651b35a93652b3022c5ee1c8e8fa5b3264332 100644 (file)
@@ -159,6 +159,7 @@ portable-source:
     script:
         - ci/install-packages.sh
         - export GV_VERSION=$( cat VERSION )
+        - export OS_ID=$( cat OS_ID )
         - python3 -m pytest --junitxml=report.xml tests rtest
     artifacts:
         reports:
index ff6076c86b922d62af0634642e25a099ec1c208c..18db70e5642090d2da414efd71e7ab7181602e49 100755 (executable)
@@ -10,6 +10,7 @@ else
     ID=$( cat /etc/redhat-release | cut -d' ' -f1 | tr 'A-Z' 'a-z' )
     VERSION_ID=$( cat /etc/redhat-release | cut -d' ' -f3  | cut -d'.' -f1 )
 fi
+printf '%s\n' "${ID}" >OS_ID
 GV_VERSION=$( cat VERSION )
 COLLECTION=$( cat COLLECTION )
 DIR=Packages/${COLLECTION}/${ID}/${VERSION_ID}