-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
run-qa-checks
executable file
·30 lines (26 loc) · 1.07 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
#!/bin/bash
set -e
jshint openwisp_monitoring/device/static/monitoring/js/*.js
jshint openwisp_monitoring/monitoring/static/monitoring/js/*.js
stylelint openwisp_monitoring/device/static/monitoring/css/*.css
stylelint openwisp_monitoring/monitoring/static/monitoring/css/*.css
openwisp-qa-check \
--migration-path "./openwisp_monitoring/check/migrations \
./openwisp_monitoring/device/migrations \
./openwisp_monitoring/monitoring/migrations" \
--migration-module "check device_monitoring monitoring"
echo ''
echo 'Running checks for SAMPLE_APP'
SAMPLE_APP=1 openwisp-qa-check \
--skip-isort \
--skip-flake8 \
--skip-checkmigrations \
--skip-checkendline \
--skip-checkcommit \
--skip-black \
--csslinter \
--jslinter \
--migration-path "./tests/openwisp2/sample_check/migrations/ \
./tests/openwisp2/sample_device_monitoring/migrations/ \
./tests/openwisp2/sample_monitoring/migrations/" \
--migration-module "sample_check sample_device_monitoring sample_monitoring"