forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall.sh
More file actions
executable file
·45 lines (36 loc) · 988 Bytes
/
Copy pathall.sh
File metadata and controls
executable file
·45 lines (36 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
set -ex
cd "$(dirname "${BASH_SOURCE[0]}")"
echo "!!!!!!!!!!!!!!!!!!"
echo "!!! DEPRECATED !!!"
echo "!!!!!!!!!!!!!!!!!!"
echo "This script is deprecated!"
echo "Add your checks to 'dev/sg/linters' instead."
parallel_run() {
../ci/parallel_run.sh "$@"
}
go version
go env
CHECKS=(
./gofmt.sh
./template-inlines.sh
./go-enterprise-import.sh
./go-dbconn-import.sh
./go-lint.sh
./no-localhost-guard.sh
./bash-syntax.sh
./shfmt.sh
./shellcheck.sh
./ts-enterprise-import.sh
./submodule.sh
)
echo "--- 🚨 Buildkite's timing information is misleading! Only consider the job timing that's printed after 'done'"
MAYBE_TIME_PREFIX=""
if [[ "${CI_DEBUG_PROFILE:-"false"}" == "true" ]]; then
MAYBE_TIME_PREFIX="env time -v"
fi
parallel_run "${MAYBE_TIME_PREFIX}" {} ::: "${CHECKS[@]}"
# TODO(sqs): Reenable this check when about.sourcegraph.com is reliable. Most failures come from its
# downtime, not from broken URLs.
#
# ./broken-urls.bash