diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-10-04 21:32:31 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-10-10 15:18:55 -0700 |
commit | e900f94a037899cd6ca31ca84615b6c004cf4d7b (patch) | |
tree | 0e6e5e46a99d44ec19f660fee630efc15cd1e414 | |
parent | a296f6bb8d9675debba608324f56cea0d95ad48e (diff) | |
download | serenity-e900f94a037899cd6ca31ca84615b6c004cf4d7b.zip |
Meta: Run check-markdown as part of 'Azure Linux NoFuzz'
-rw-r--r-- | Meta/Azure/Lagom.yml | 14 | ||||
-rwxr-xr-x | Meta/check-markdown.sh | 6 | ||||
-rw-r--r-- | azure-pipelines.yml | 1 |
3 files changed, 17 insertions, 4 deletions
diff --git a/Meta/Azure/Lagom.yml b/Meta/Azure/Lagom.yml index 22b9ec7d0a..96d619fc80 100644 --- a/Meta/Azure/Lagom.yml +++ b/Meta/Azure/Lagom.yml @@ -1,7 +1,8 @@ parameters: os: 'Linux' fuzzer: 'NoFuzz' - allow_test_failures: 'NoFuzz' + lagom_lints: false + allow_test_failures: false jobs: - job: 'Lagom_${{ parameters.os }}_${{ parameters.fuzzer }}' @@ -101,6 +102,17 @@ jobs: ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1' UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' + - ${{ if eq(parameters.lagom_lints, true) }}: + - script: | + ./Meta/check-markdown.sh + displayName: 'Check Markdown' + workingDirectory: $(Build.SourcesDirectory)/ + env: + MARKDOWN_CHECK_BINARY: ./Meta/Lagom/Build/markdown-check + # FIXME: enable detect_stack_use_after_return=1 #7420 + ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1' + UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' + - script: | CCACHE_DIR='$(SERENITY_CCACHE_DIR)' ccache -s displayName: 'Cache Stats' diff --git a/Meta/check-markdown.sh b/Meta/check-markdown.sh index b663607395..0eeba1b745 100755 --- a/Meta/check-markdown.sh +++ b/Meta/check-markdown.sh @@ -5,7 +5,7 @@ set -eo pipefail script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "${script_path}/.." -if [ -z "${CHECK_MARKDOWN_BINARY:-}" ] ; then +if [ -z "${MARKDOWN_CHECK_BINARY:-}" ] ; then if ! [ -d Build/lagom/ ] ; then echo "Directory Build/lagom/ does not exist. Skipping markdown check." exit 0 @@ -15,7 +15,7 @@ if [ -z "${CHECK_MARKDOWN_BINARY:-}" ] ; then echo "To enable this check, you may need to run './Meta/serenity.sh build lagom' first." exit 0 fi - CHECK_MARKDOWN_BINARY="Build/lagom/markdown-check" + MARKDOWN_CHECK_BINARY="Build/lagom/markdown-check" fi -find AK Base Documentation Kernel Meta Ports Tests Userland -path 'Ports/*/*' -prune -o -type f -name '*.md' -print0 | xargs -0 "${CHECK_MARKDOWN_BINARY}" README.md +find AK Base Documentation Kernel Meta Ports Tests Userland -path 'Ports/*/*' -prune -o -type f -name '*.md' -print0 | xargs -0 "${MARKDOWN_CHECK_BINARY}" README.md diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 775f501429..2b0904c1b7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,6 +8,7 @@ jobs: - template: Meta/Azure/Lagom.yml parameters: os: 'Linux' + lagom_lints: true - template: Meta/Azure/Lagom.yml parameters: |