42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
version: 2.1
|
|
|
|
# this allows you to use CircleCI's dynamic configuration feature
|
|
setup: true
|
|
|
|
# the path-filtering orb is required to continue a pipeline based on
|
|
# the path of an updated fileset
|
|
orbs:
|
|
path-filtering: circleci/path-filtering@0.1.2
|
|
|
|
workflows:
|
|
# the always-run workflow is always triggered, regardless of the pipeline parameters.
|
|
always-run:
|
|
jobs:
|
|
# the path-filtering/filter job determines which pipeline
|
|
# parameters to update.
|
|
- path-filtering/filter:
|
|
name: check-updated-files
|
|
# 3-column, whitespace-delimited mapping. One mapping per
|
|
# line:
|
|
# <regex path-to-test> <parameter-to-set> <value-of-pipeline-parameter>
|
|
mapping: |
|
|
.circle/.* lint_only false
|
|
cmake/.* lint_only false
|
|
configs/.* lint_only true
|
|
csrc/.* lint_only false
|
|
demo/csrc/.* lint_only false
|
|
docker/.* lint_only true
|
|
docs/.* lint_only true
|
|
mmdeploy/.* lint_only false
|
|
requirements/.* lint_only false
|
|
tests/.* lint_only false
|
|
third_party/.* lint_only false
|
|
tools/.* lint_only false
|
|
setup.py lint_only false
|
|
base-revision: main
|
|
# this is the path of the configuration we should trigger once
|
|
# path filtering and pipeline parameter value updates are
|
|
# complete. In this case, we are using the parent dynamic
|
|
# configuration itself.
|
|
config-path: .circleci/test.yml
|