-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathrun-qa-checks
executable file
·41 lines (34 loc) · 952 Bytes
/
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
38
39
40
41
#!/bin/bash
set -e
jshint ./openwisp_users/static/openwisp-users/js/*.js
echo ''
echo 'Compiling translations'
cd openwisp_users
django-admin compilemessages
cd ..
openwisp-qa-check \
--migrations-to-ignore 2 \
--migration-path './openwisp_users/migrations' \
--migration-module openwisp_users
echo ''
echo 'Running checks for testapp'
openwisp-qa-check \
--skip-isort \
--skip-flake8 \
--skip-black \
--skip-checkmigrations \
--skip-checkendline \
--skip-checkcommit \
--migration-path './tests/testapp/migrations' \
--migration-module testapp
echo ''
echo 'Running checks for SAMPLE_APP'
SAMPLE_APP=1 openwisp-qa-check \
--skip-isort \
--skip-flake8 \
--skip-black \
--skip-checkmigrations \
--skip-checkendline \
--skip-checkcommit \
--migration-path './tests/openwisp2/sample_ipam/migrations' \
--migration-module sample_users