Commit 046b983d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

CI: Enable static analysis for merge requests

parent 0bc75bd1
...@@ -7,12 +7,17 @@ variables: ...@@ -7,12 +7,17 @@ variables:
MEDIALIBRARY_ALPINE_IMG: registry.videolan.org/medialibrary-alpine:20210902074848 MEDIALIBRARY_ALPINE_IMG: registry.videolan.org/medialibrary-alpine:20210902074848
MEDIALIB_TEST_FOLDER: $CI_PROJECT_DIR/medialib_tests/ MEDIALIB_TEST_FOLDER: $CI_PROJECT_DIR/medialib_tests/
include:
- template: Security/SAST.gitlab-ci.yml
stages: stages:
- build - build
- test - test
- static-analysis
build:debian: build:debian:
image: $MEDIALIBRARY_IMG image: $MEDIALIBRARY_IMG
stage: build
rules: rules:
- if: $CI_MERGE_REQUEST_IID - if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
...@@ -30,7 +35,6 @@ build:debian: ...@@ -30,7 +35,6 @@ build:debian:
- $CI_PROJECT_DIR/build - $CI_PROJECT_DIR/build
when: on_success when: on_success
build:novlc: build:novlc:
image: $MEDIALIBRARY_IMG image: $MEDIALIBRARY_IMG
stage: build stage: build
...@@ -215,6 +219,7 @@ test:win64: ...@@ -215,6 +219,7 @@ test:win64:
asan-ubsan: asan-ubsan:
image: $VLC_DEBIAN_UNSTABLE_IMG image: $VLC_DEBIAN_UNSTABLE_IMG
stage: build
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"' - if: '$CI_PIPELINE_SOURCE == "schedule"'
when: on_success when: on_success
...@@ -268,3 +273,5 @@ asan-ubsan: ...@@ -268,3 +273,5 @@ asan-ubsan:
# - ./test/fast_teardown/fast_teardown $CI_PROJECT_DIR/test/samples/samples # - ./test/fast_teardown/fast_teardown $CI_PROJECT_DIR/test/samples/samples
# - ./test/fast_discover_cancel/fast_discover_cancel $CI_PROJECT_DIR/test/samples/samples # - ./test/fast_discover_cancel/fast_discover_cancel $CI_PROJECT_DIR/test/samples/samples
sast:
stage: static-analysis
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment