Browse Source

Alterando scripts de QA para executar sempre na raiz do projeto

Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1933/head
Eliseu Egewarth 8 years ago
parent
commit
1f987c8c11
  1. 4
      .travis.yml
  2. 6
      scripts/django/check_qa.sh
  3. 5
      scripts/django/test_and_check_qa.sh

4
.travis.yml

@ -1,7 +1,7 @@
language: python language: python
python: python:
- 3.4.3 - 3.5
services: services:
- postgresql - postgresql
@ -20,7 +20,7 @@ script:
- ./manage.py migrate - ./manage.py migrate
- ./manage.py bower install - ./manage.py bower install
- py.test --create-db - py.test --create-db
# - ./test_and_check_qa.sh # - ./scripts/django/test_and_check_qa.sh
addons: addons:
hosts: hosts:

6
check_qa.sh → scripts/django/check_qa.sh

@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
# Verifica se um breakpoint foi esquecido no código # Verifica se um breakpoint foi esquecido no código
me=`basename "$0"` me="$0"
git_project_root=$(git rev-parse --show-toplevel)
cd ${git_project_root}
busca=`grep --color=auto --exclude=$me --exclude=ipython_log.py* -r -l "pdb.set_trace()" .` busca=`grep --color=auto --exclude=$me --exclude=ipython_log.py* -r -l "pdb.set_trace()" .`
if [ ! -z "$busca" ] if [ ! -z "$busca" ]

5
test_and_check_qa.sh → scripts/django/test_and_check_qa.sh

@ -2,6 +2,9 @@
# QA checks: run this before every commit # QA checks: run this before every commit
git_project_root=$(git rev-parse --show-toplevel)
cd ${git_project_root}
py.test py.test
py.test --ds=sapl.crud.tests.settings sapl/crud/tests py.test --ds=sapl.crud.tests.settings sapl/crud/tests
./check_qa.sh ./scripts/django/check_qa.sh
Loading…
Cancel
Save