forked from openwisp/openwisp-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-qa-checks
executable file
·37 lines (31 loc) · 1.28 KB
/
run-qa-checks
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
#!/bin/bash
set -e
rm -rf ./openwisp_controller/geo/tests/.pytest_cache \
./openwisp_controller/.pytest_cache/ \
./tests/openwisp2/sample_geo/.pytest_cache \
./tests/openwisp2/.pytest_cache/ \
./htmlcov/ 2> /dev/null || true
# JSHint check
jshint openwisp_controller/pki/static/admin/pki/js/*.js
jshint openwisp_controller/config/static/config/js/*.js
jshint openwisp_controller/connection/static/connection/js/*.js
stylelint "openwisp_controller/config/static/config/css/*.css"
stylelint "openwisp_controller/connection/static/connection/css/*.css"
openwisp-qa-check \
--migrations-to-ignore "12 0 0 4" \
--migration-path "./openwisp_controller/config/migrations
./openwisp_controller/connection/migrations
./openwisp_controller/geo/migrations
./openwisp_controller/pki/migrations"
echo ''
echo 'Running checks for SAMPLE_APP'
SAMPLE_APP=1 openwisp-qa-check \
--skip-isort \
--skip-flake8 \
--skip-black \
--skip-checkendline \
--skip-checkcommit \
--migration-path "./tests/openwisp2/sample_config/migrations/
./tests/openwisp2/sample_pki/migrations/
./tests/openwisp2/sample_connection/migrations/
./tests/openwisp2/sample_geo/migrations/"