Skip to content

Commit 0320fce

Browse files
committed
Exclude deps directory from search
1 parent f06efba commit 0320fce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/ci/circle/script

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ node_modules="${root_dir}/node_modules"
4747
# Define the directory path for build artifacts:
4848
build_dir="${root_dir}/build"
4949

50+
# Define the directory path for vendor dependencies:
51+
deps_dir="${root_dir}/deps"
52+
5053
# Define the directory path for reports:
5154
reports_dir="${root_dir}/reports"
5255

@@ -254,9 +257,9 @@ find_tests() {
254257

255258
# On Mac OSX, in order to use `|` and other regular expression operators, we need to use enhanced regular expression syntax (-E); see https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man7/re_format.7.html#//apple_ref/doc/man/7/re_format.
256259
if [[ "${kernel}" = "Darwin" ]]; then
257-
tests=$(find -E "${root_dir}" -name "${tests_pattern}" -regex "${tests_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${tools_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
260+
tests=$(find -E "${root_dir}" -name "${tests_pattern}" -regex "${tests_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${tools_dir}/*" -not -path "${deps_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
258261
else
259-
tests=$(find "${root_dir}" -regextype posix-extended -name "${tests_pattern}" -regex "${tests_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${tools_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
262+
tests=$(find "${root_dir}" -regextype posix-extended -name "${tests_pattern}" -regex "${tests_filter}" -not -path "${root_dir}/.*" -not -path "${node_modules}/*" -not -path "${tools_dir}/*" -not -path "${deps_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
260263
fi
261264
echo "${tests}"
262265
}

0 commit comments

Comments
 (0)