Skip to content

Commit d534d19

Browse files
committed
Exclude project tools tests
1 parent d6b9900 commit d534d19

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
@@ -56,6 +56,9 @@ reports_dir="${root_dir}/reports"
5656
# Define the directory for top-level tools:
5757
tools_dir="${root_dir}/tools"
5858

59+
# Define the directory for project tools which are Node.js packages:
60+
tools_pkgs_dir="${base_dir}/_tools"
61+
5962
# Define a heartbeat interval to periodically print messages in order to prevent Circle CI from prematurely ending a build due to long running commands:
6063
heartbeat_interval='30s'
6164

@@ -256,9 +259,9 @@ find_tests() {
256259

257260
# 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.
258261
if [[ "${kernel}" = "Darwin" ]]; then
259-
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}/*")
262+
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 "${tools_pkgs_dir}/*" -not -path "${deps_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
260263
else
261-
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}/*")
264+
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 "${tools_pkgs_dir}/*" -not -path "${deps_dir}/*" -not -path "${build_dir}/*" -not -path "${reports_dir}/*")
262265
fi
263266
echo "${tests}"
264267
}

0 commit comments

Comments
 (0)