Skip to content

Commit 1c020bb

Browse files
Add missing functions
1 parent a8eae85 commit 1c020bb

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.ci/compute-projects.sh

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,40 @@ function add-dependencies() {
110110
done
111111
}
112112

113+
function exclude-linux() {
114+
projects=${@}
115+
for project in ${projects}; do
116+
case ${project} in
117+
cross-project-tests) ;; # tests failing
118+
openmp) ;; # https://github.com/google/llvm-premerge-checks/issues/410
119+
*)
120+
echo "${project}"
121+
;;
122+
esac
123+
done
124+
}
125+
126+
function exclude-windows() {
127+
projects=${@}
128+
for project in ${projects}; do
129+
case ${project} in
130+
cross-project-tests) ;; # tests failing
131+
compiler-rt) ;; # tests taking too long
132+
openmp) ;; # TODO: having trouble with the Perl installation
133+
libc) ;; # no Windows support
134+
lldb) ;; # custom environment requirements (https://github.com/llvm/llvm-project/pull/94208#issuecomment-2146256857)
135+
bolt) ;; # tests are not supported yet
136+
*)
137+
echo "${project}"
138+
;;
139+
esac
140+
done
141+
}
142+
113143
# Prints only projects that are both present in $modified_dirs and the passed
114144
# list.
115145
function keep-modified-projects() {
116146
projects=${@}
117-
modified_dirs=${1}
118147
for project in ${projects}; do
119148
if echo "$modified_dirs" | grep -q -E "^${project}$"; then
120149
echo "${project}"

0 commit comments

Comments
 (0)