File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ services:
22
22
- CAP_NET_RAW
23
23
- CAP_NET_BIND_SERVICE
24
24
25
- sanity :
25
+ soundness :
26
26
<< : *common
27
- command : /bin/bash -cl "./scripts/sanity .sh"
27
+ command : /bin/bash -cl "./scripts/soundness .sh"
28
28
29
29
test :
30
30
<< : *common
Original file line number Diff line number Diff line change 16
16
set -eu
17
17
here=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
18
18
19
+ printf " => Checking for unacceptable language... "
20
+ # This greps for unacceptable terminology. The square bracket[s] are so that
21
+ # "git grep" doesn't find the lines that greps :).
22
+ unacceptable_terms=(
23
+ -e blacklis[t]
24
+ -e whitelis[t]
25
+ -e slav[e]
26
+ -e sanit[y]
27
+ )
28
+ if git grep --color=never -i " ${unacceptable_terms[@]} " > /dev/null; then
29
+ printf " \033[0;31mUnacceptable language found.\033[0m\n"
30
+ git grep -i " ${unacceptable_terms[@]} "
31
+ exit 1
32
+ fi
33
+ printf " \033[0;32mokay.\033[0m\n"
34
+
19
35
printf " => Checking linux tests... "
20
36
FIRST_OUT=" $( git status --porcelain) "
21
37
ruby " $here /../scripts/generate_linux_tests.rb" > /dev/null
41
57
fi
42
58
43
59
printf " => Checking license headers\n"
44
- tmp=$( mktemp /tmp/.swift-statsd-client-sanity_XXXXXX )
60
+ tmp=$( mktemp /tmp/.swift-statsd-client-soundness_XXXXXX )
45
61
46
62
for language in swift-or-c bash dtrace; do
47
63
printf " * $language ... "
You can’t perform that action at this time.
0 commit comments