[glib: 1/2] ci: Run scan-build in a different build directory



commit 82906e5d5de8a294613c0ad1a360e3d8112567d4
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jun 12 14:31:42 2019 +0100

    ci: Run scan-build in a different build directory
    
    The build artifacts from earlier jobs in the pipeline all use the
    `_build` directory. When they are copied in to the scan-build job, they
    are probably marked as read-only. This means that the `meson scan-build`
    run can’t write to `_build/meson-logs/meson-log.txt` and fails.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 .gitlab-ci.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9bff123ea..81fddc25f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -255,13 +255,13 @@ scan-build:
             -Ddtrace=true
             -Dfam=true
             -Dinstalled_tests=true
-            _build
-    - ninja -C _build scan-build
+            _scan_build
+    - ninja -C _scan_build scan-build
   artifacts:
     name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     when: always
     paths:
-      - "_build/meson-logs/scanbuild"
+      - "_scan_build/meson-logs/scanbuild"
 
 pages:
   stage: deploy


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