From 4d2ff49477590b8746467ecee7a7c5bb8638f34b Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Sun, 21 Aug 2022 21:13:13 +0200 Subject: [PATCH] gitlab: improve documentation --- docs/running-clusterfuzzlite/gitlab.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/running-clusterfuzzlite/gitlab.md b/docs/running-clusterfuzzlite/gitlab.md index 722d82f..723ae10 100644 --- a/docs/running-clusterfuzzlite/gitlab.md +++ b/docs/running-clusterfuzzlite/gitlab.md @@ -38,6 +38,9 @@ To enable more features, we recommend having different jobs for: To add a fuzzing job that fuzzes all merge requests to your repo, add the following default configurations to `.gitlab-ci.yml`: +This configuration requires at least GitLab 13.3 to be run. +With older versions, the `parallel` keywords does not exist, but you can define `SANITIZER` as a Gitlab CI variable. + {% raw %} ```yaml variables: @@ -48,7 +51,7 @@ clusterfuzzlite: image: name: gcr.io/oss-fuzz-base/clusterfuzzlite-run-fuzzers:v1 entrypoint: [""] - stage: fuzz + stage: test parallel: matrix: - SANITIZER: [address, undefined] @@ -96,7 +99,7 @@ clusterfuzzlite-corpus: image: name: gcr.io/oss-fuzz-base/clusterfuzzlite-run-fuzzers:v1 entrypoint: [""] - stage: fuzz + stage: test rules: - if: $MODE == "prune" - if: $MODE == "batch" @@ -136,7 +139,7 @@ clusterfuzzlite-build: image: name: gcr.io/oss-fuzz-base/clusterfuzzlite-run-fuzzers:v1 entrypoint: [""] - stage: fuzz + stage: test rules: # Use $CI_DEFAULT_BRANCH or $CFL_BRANCH. - if: $CI_COMMIT_BRANCH == $CFL_BRANCH && $CI_PIPELINE_SOURCE == "push" @@ -165,7 +168,7 @@ clusterfuzzlite-coverage: image: name: gcr.io/oss-fuzz-base/clusterfuzzlite-run-fuzzers:v1 entrypoint: [""] - stage: fuzz + stage: test variables: SANITIZER: "coverage" rules: