mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Meta: Run check-markdown as part of 'Azure Linux NoFuzz'
This commit is contained in:
parent
a296f6bb8d
commit
e900f94a03
3 changed files with 17 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
||||||
parameters:
|
parameters:
|
||||||
os: 'Linux'
|
os: 'Linux'
|
||||||
fuzzer: 'NoFuzz'
|
fuzzer: 'NoFuzz'
|
||||||
allow_test_failures: 'NoFuzz'
|
lagom_lints: false
|
||||||
|
allow_test_failures: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'Lagom_${{ parameters.os }}_${{ parameters.fuzzer }}'
|
- 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'
|
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'
|
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: |
|
- script: |
|
||||||
CCACHE_DIR='$(SERENITY_CCACHE_DIR)' ccache -s
|
CCACHE_DIR='$(SERENITY_CCACHE_DIR)' ccache -s
|
||||||
displayName: 'Cache Stats'
|
displayName: 'Cache Stats'
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -eo pipefail
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "${script_path}/.."
|
cd "${script_path}/.."
|
||||||
|
|
||||||
if [ -z "${CHECK_MARKDOWN_BINARY:-}" ] ; then
|
if [ -z "${MARKDOWN_CHECK_BINARY:-}" ] ; then
|
||||||
if ! [ -d Build/lagom/ ] ; then
|
if ! [ -d Build/lagom/ ] ; then
|
||||||
echo "Directory Build/lagom/ does not exist. Skipping markdown check."
|
echo "Directory Build/lagom/ does not exist. Skipping markdown check."
|
||||||
exit 0
|
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."
|
echo "To enable this check, you may need to run './Meta/serenity.sh build lagom' first."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
CHECK_MARKDOWN_BINARY="Build/lagom/markdown-check"
|
MARKDOWN_CHECK_BINARY="Build/lagom/markdown-check"
|
||||||
fi
|
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
|
||||||
|
|
|
@ -8,6 +8,7 @@ jobs:
|
||||||
- template: Meta/Azure/Lagom.yml
|
- template: Meta/Azure/Lagom.yml
|
||||||
parameters:
|
parameters:
|
||||||
os: 'Linux'
|
os: 'Linux'
|
||||||
|
lagom_lints: true
|
||||||
|
|
||||||
- template: Meta/Azure/Lagom.yml
|
- template: Meta/Azure/Lagom.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue