]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make debian-trace job conditional on src/lib/trace/trace_sys.c
authorNick Mathewson <nickm@torproject.org>
Fri, 18 Sep 2020 19:56:59 +0000 (15:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 18 Sep 2020 23:05:51 +0000 (19:05 -0400)
.gitlab-ci.yml

index 028a49f52caeb8042cf3089caf3935bcfd158d2e..ce279a4bceb59a997bdcbc01bacff7e578c59800 100644 (file)
@@ -168,3 +168,15 @@ debian-tracing:
     CHECK: "no"
   script:
     - ./scripts/ci/ci-driver.sh
+  # Ensure that we only run tracing when it's implemented.
+  #
+  # Once versions before 0.4.5 are obsolete, we can remove this test.
+  rules:
+    # This first "if" check prevents us from running a duplicate version of
+    # this pipeline whenever we push and create an MR.  I don't understand why
+    # it is necessary, though the following URL purports to explain:
+    #
+    # https://docs.gitlab.com/ee/ci/yaml/#prevent-duplicate-pipelines
+    - if: '$CI_PIPELINE_SOURCE == "push"'
+      exists:
+        - src/lib/trace/trace_sys.c