1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-SVT-AV1

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
.gitlab-ci.yml 2.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Christopher Degawa Отправлено 29.07.2022 00:13 24bcc99
workflow:
rules:
# Use merge-request pipelines
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- when: always
stages:
- compile
- test
- test-2
- test-3
variables:
CMAKE_GENERATOR: Ninja
CCACHE_DIR: $CI_PROJECT_DIR/.ccache
default:
interruptible: true
retry: 2
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- .ccache
policy: pull-push
include:
- local: /.gitlab/workflows/common/.gitlab-ci.yml
- remote: 'https://gitlab.com/AOMediaCodec/aom-testing/-/raw/ci-build-testing/.gitlab/workflows/nightly/.gitlab-ci.yml'
rules:
- if: $NIGHTLY != null
- local: /.gitlab/workflows/standard/.gitlab-ci.yml
rules:
- if: $NIGHTLY == null
Style check:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: never
- if: $NIGHTLY == null
stage: compile
image: registry.gitlab.com/aomediacodec/aom-testing/alpine3
script:
- ./test/stylecheck.sh
- git fetch ${CI_MERGE_REQUEST_PROJECT_URL:-https://gitlab.com/AOMediaCodec/SVT-AV1.git} "${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-HEAD}"
- d=$(git diff FETCH_HEAD | /usr/share/clang/clang-format-diff.py -p1)
- |
if [ -n "$d" ]; then
cat <<FOE
clang-format check failed!
Please run inside a posix compatible shell with git and amend or commit the result
git apply -p0 <<EOF
$d
EOF
FOE
exit 1
fi
Static analysis (cppcheck):
rules:
- if: $NIGHTLY != null
when: never
- !reference [.source_code_rules]
stage: compile
image: registry.gitlab.com/aomediacodec/aom-testing/ubuntu1804
cache:
key: cppcheck
paths:
- .cppcheck
policy: pull-push
script:
- cmake -B Build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- mkdir -p .cppcheck
- jq '.[]|=with_entries(select(.value | test(".asm|/SVT-AV1/Build/cpuinfo") | not)) | unique' Build/compile_commands.json > compile_commands.json
- |
cppcheck \
--project=compile_commands.json \
--error-exitcode=1 \
--enable=all \
-j 2 \
-rp=$PWD \
-ithird_party \
--cppcheck-build-dir=.cppcheck \
--suppress=unusedFunction > /dev/null

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-SVT-AV1.git
git@api.gitlife.ru:oschina-mirror/mirrors-SVT-AV1.git
oschina-mirror
mirrors-SVT-AV1
mirrors-SVT-AV1
master