-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathrun-qa-checks
More file actions
executable file
·29 lines (25 loc) · 775 Bytes
/
run-qa-checks
File metadata and controls
executable file
·29 lines (25 loc) · 775 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
#!/bin/bash
set -e
# will be 1 by default when run through github actions
CI=${CI:-0}
if [ "$CI" -eq 1 ]; then
# during github actions CI, copy these files so that they can be checked by
# the github action step "action-sh-checker" (see .github/workflows/ci.yml)
cp openwisp-config/files/openwisp.agent openwisp_agent
cp openwisp-config/files/openwisp.init openwisp_init
else
# check shell scripts formatting
sh_files=$(shfmt -f .)
# shellcheck disable=SC2086
shellcheck $sh_files \
openwisp-config/files/openwisp.agent \
openwisp-config/files/openwisp.init
shfmt -d .
shfmt -d openwisp-config/files/openwisp.agent
shfmt -d openwisp-config/files/openwisp.init
fi
openwisp-qa-check \
--skip-checkmigrations \
--skip-isort \
--skip-flake8 \
--skip-black