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>
This commit is contained in:
Philip Withnall 2019-06-12 14:31:42 +01:00
parent c11f5321dd
commit 82906e5d5d

View File

@ -255,13 +255,13 @@ scan-build:
-Ddtrace=true -Ddtrace=true
-Dfam=true -Dfam=true
-Dinstalled_tests=true -Dinstalled_tests=true
_build _scan_build
- ninja -C _build scan-build - ninja -C _scan_build scan-build
artifacts: artifacts:
name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always when: always
paths: paths:
- "_build/meson-logs/scanbuild" - "_scan_build/meson-logs/scanbuild"
pages: pages:
stage: deploy stage: deploy