mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
circle.yml: add ninja scan-build to the jobs
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Benjamin Tissoires
parent
6f72accbee
commit
8cfcab3363
26
circle.yml
26
circle.yml
@@ -39,6 +39,12 @@ libratbag_references:
|
||||
export_logs: &export_logs
|
||||
store_artifacts:
|
||||
path: ~/libratbag/build/meson-logs
|
||||
ninja_scan_build: &ninja_scan_build
|
||||
run:
|
||||
<<: *build_default
|
||||
name: Ninja scan-build
|
||||
environment:
|
||||
NINJA_ARGS: scan-build
|
||||
|
||||
|
||||
fedora_install: &fedora_install
|
||||
@@ -76,6 +82,21 @@ ubuntu_settings: &ubuntu_settings
|
||||
- *export_logs
|
||||
|
||||
|
||||
scan_build_run: &scan_build_run
|
||||
<<: *default_settings
|
||||
steps:
|
||||
- *fedora_install
|
||||
- run:
|
||||
name: Install clang and find
|
||||
command: dnf install -y clang-analyzer findutils
|
||||
- checkout
|
||||
- *ninja_scan_build
|
||||
- *export_logs
|
||||
- run:
|
||||
name: Check scan-build results
|
||||
command: test ! -d ~/libratbag/build/meson-logs/scanbuild || test $(find ~/libratbag/build/meson-logs/scanbuild -maxdepth 0 ! -empty -exec echo "not empty" \; | wc -l) -eq 0 || (echo "Check scan-build results" && false)
|
||||
|
||||
|
||||
version: 2
|
||||
jobs:
|
||||
fedora_rawhide:
|
||||
@@ -90,6 +111,10 @@ jobs:
|
||||
<<: *ubuntu_settings
|
||||
docker:
|
||||
- image: ubuntu:zesty
|
||||
scan_build:
|
||||
<<: *scan_build_run
|
||||
docker:
|
||||
- image: fedora:latest
|
||||
|
||||
|
||||
workflows:
|
||||
@@ -97,5 +122,6 @@ workflows:
|
||||
compile_and_test:
|
||||
jobs:
|
||||
- fedora_rawhide
|
||||
- scan_build
|
||||
- ubuntu_17_04
|
||||
#- fedora_latest
|
||||
|
||||
Reference in New Issue
Block a user