]> granicus.if.org Git - graphviz/commitdiff
add a home for test cases that are only relevant to run in CI
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 02:34:08 +0000 (19:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 17:41:39 +0000 (10:41 -0700)
Related to #1851.

.gitlab-ci.yml
ci/tests.py [new file with mode: 0644]

index 00dc0b46b1871f4838926ae0d7d98db421d54e0b..6f477613c1d60fb47ec8999aa36178a96e4ea63e 100644 (file)
@@ -149,7 +149,7 @@ portable-source:
               # The following is per https://gitlab.com/graphviz/graphviz/-/merge_requests/1345
               $env:Path = $env:CI_PROJECT_DIR + "\" + $env:configuration + "\Graphviz\bin" + ";" + $env:Path;
             }
-        - python3 -m pytest --junitxml=report.xml tests rtest
+        - python3 -m pytest --junitxml=report.xml ci/tests.py tests rtest
         # Create artifacts to archive
         - $ID = "windows"
         - $VERSION_ID = "10"
@@ -180,7 +180,7 @@ portable-source:
         - ci/install-packages.sh
         - export GV_VERSION=$( cat VERSION )
         - export OS_ID=$( cat OS_ID )
-        - python3 -m pytest --junitxml=report.xml tests rtest
+        - python3 -m pytest --junitxml=report.xml ci/tests.py tests rtest
     artifacts:
         reports:
             junit: ./report.xml
diff --git a/ci/tests.py b/ci/tests.py
new file mode 100644 (file)
index 0000000..279cc98
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+'''
+test cases that are only relevant to run in CI
+'''
+
+def test_stub():
+  '''
+  a no-op test case to allow pytest to accept this file at first
+  '''
+  pass